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.



64
65
66
67
68
# File 'lib/factory_girl/step_definitions.rb', line 64

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.



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

def association_manager
  @association_manager
end

#keyObject (readonly)

Returns the value of attribute key.



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

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end