Class: FactoryGirlStepHelpers::HumanHashToAttributeHash::AttributeStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/factory_girl/step_definitions.rb

Direct Known Subclasses

CreateAttributes, FindAttributes

Instance Attribute Summary collapse

Instance Method Summary collapse

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_managerObject (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

#keyObject (readonly)

Returns the value of attribute key.



63
64
65
# File 'lib/factory_girl/step_definitions.rb', line 63

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



63
64
65
# File 'lib/factory_girl/step_definitions.rb', line 63

def value
  @value
end