Class: FactoryGirlStepHelpers::HumanHashToAttributeHash::AttributeStrategy Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Direct Known Subclasses

CreateAttributes, FindAttributes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(human_hash_to_attributes_hash, key, value) ⇒ AttributeStrategy

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AttributeStrategy.



66
67
68
69
70
# File 'lib/factory_girl/step_definitions.rb', line 66

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)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

def association_manager
  @association_manager
end

#keyObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

def key
  @key
end

#valueObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

def value
  @value
end