Class: Axn::Core::ContractForSubfields::ResolvedSubfieldsCacheEntry

Inherits:
Data
  • Object
show all
Defined in:
lib/axn/core/contract_for_subfields.rb

Overview

The per-class cache slot for the resolved-subfield artifact: the config arrays it was built from plus the built value. Validity is decided by comparing the arrays' IDENTITY, never the value — see ClassMethods#_resolved_subfields.

Instance Attribute Summary collapse

Instance Attribute Details

#fieldsObject (readonly)

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



15
16
17
# File 'lib/axn/core/contract_for_subfields.rb', line 15

def fields
  @fields
end

#subfieldsObject (readonly)

Returns the value of attribute subfields

Returns:

  • (Object)

    the current value of subfields



15
16
17
# File 'lib/axn/core/contract_for_subfields.rb', line 15

def subfields
  @subfields
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



15
16
17
# File 'lib/axn/core/contract_for_subfields.rb', line 15

def value
  @value
end