Class: FactoryGirlStepHelpers::HumanHashToAttributeHash::AttributeStrategy
- Inherits:
-
Object
- Object
- FactoryGirlStepHelpers::HumanHashToAttributeHash::AttributeStrategy
- Defined in:
- lib/factory_girl/step_definitions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#association_manager ⇒ Object
readonly
Returns the value of attribute association_manager.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(human_hash_to_attributes_hash, key, value) ⇒ AttributeStrategy
constructor
A new instance of AttributeStrategy.
Constructor Details
#initialize(human_hash_to_attributes_hash, key, value) ⇒ AttributeStrategy
Returns a new instance of AttributeStrategy.
65 66 67 68 69 |
# File 'lib/factory_girl/step_definitions.rb', line 65 def initialize(human_hash_to_attributes_hash, key, value) @association_manager = AssociationManager.new(human_hash_to_attributes_hash, key, value) @key = key @value = value end |
Instance Attribute Details
#association_manager ⇒ Object (readonly)
Returns the value of attribute association_manager.
63 64 65 |
# File 'lib/factory_girl/step_definitions.rb', line 63 def association_manager @association_manager end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
63 64 65 |
# File 'lib/factory_girl/step_definitions.rb', line 63 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
63 64 65 |
# File 'lib/factory_girl/step_definitions.rb', line 63 def value @value end |