Class: FactoryGirlStepHelpers::HumanHashToAttributeHash::CreateAttributes
- Inherits:
-
AttributeStrategy
- Object
- AttributeStrategy
- FactoryGirlStepHelpers::HumanHashToAttributeHash::CreateAttributes
- Defined in:
- lib/factory_girl/step_definitions.rb
Instance Attribute Summary
Attributes inherited from AttributeStrategy
#association_manager, #key, #value
Instance Method Summary collapse
-
#initialize(human_hash_to_attributes_hash, key, value) ⇒ CreateAttributes
constructor
A new instance of CreateAttributes.
Constructor Details
#initialize(human_hash_to_attributes_hash, key, value) ⇒ CreateAttributes
Returns a new instance of CreateAttributes.
84 85 86 87 88 89 90 |
# File 'lib/factory_girl/step_definitions.rb', line 84 def initialize(human_hash_to_attributes_hash, key, value) super if association_manager.association @value = association_manager.association_instance end end |