Class: ActiveForce::Association::AbstractBuildFrom

Inherits:
Object
  • Object
show all
Defined in:
lib/active_force/association/relation_model_builder.rb

Direct Known Subclasses

BuildFromArray, BuildFromHash, BuildFromNilClass

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(association, value) ⇒ AbstractBuildFrom

Returns a new instance of AbstractBuildFrom.



33
34
35
36
# File 'lib/active_force/association/relation_model_builder.rb', line 33

def initialize(association, value)
  @association = association
  @value = value
end

Instance Attribute Details

#associationObject (readonly)

Returns the value of attribute association.



31
32
33
# File 'lib/active_force/association/relation_model_builder.rb', line 31

def association
  @association
end

#valueObject (readonly)

Returns the value of attribute value.



31
32
33
# File 'lib/active_force/association/relation_model_builder.rb', line 31

def value
  @value
end

Instance Method Details

#callObject



38
39
40
# File 'lib/active_force/association/relation_model_builder.rb', line 38

def call
  raise "Must implement #{self.class.name}#call"
end