Class: ActiveForce::Association::AbstractBuildFrom
- Inherits:
-
Object
- Object
- ActiveForce::Association::AbstractBuildFrom
- Defined in:
- lib/active_force/association/relation_model_builder.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#association ⇒ Object
readonly
Returns the value of attribute association.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(association, value) ⇒ AbstractBuildFrom
constructor
A new instance of AbstractBuildFrom.
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
#association ⇒ Object (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 |
#value ⇒ Object (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
#call ⇒ Object
38 39 40 |
# File 'lib/active_force/association/relation_model_builder.rb', line 38 def call raise "Must implement #{self.class.name}#call" end |