Class: IntegratedData::Entity::Integrator
- Inherits:
-
Struct
- Object
- Struct
- IntegratedData::Entity::Integrator
- Defined in:
- lib/integrated_data/entity/integrator.rb,
lib/integrated_data/entity/integrator.rb
Instance Attribute Summary collapse
-
#identifiers ⇒ Object
Returns the value of attribute identifiers.
-
#lookups ⇒ Object
Returns the value of attribute lookups.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(*args) ⇒ Integrator
constructor
A new instance of Integrator.
Constructor Details
#initialize(*args) ⇒ Integrator
Returns a new instance of Integrator.
8 9 10 11 |
# File 'lib/integrated_data/entity/integrator.rb', line 8 def initialize(*args) @cache = {} super end |
Instance Attribute Details
#identifiers ⇒ Object
Returns the value of attribute identifiers
5 6 7 |
# File 'lib/integrated_data/entity/integrator.rb', line 5 def identifiers @identifiers end |
#lookups ⇒ Object
Returns the value of attribute lookups
5 6 7 |
# File 'lib/integrated_data/entity/integrator.rb', line 5 def lookups @lookups end |
Instance Method Details
#attributes ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/integrated_data/entity/integrator.rb', line 13 def attributes Hash[ lookups.group_by(&:attribute).map do |attribute, lookups| [ attribute, find_attribute_for(lookups, attribute) ] end ] end |