Parent

Methods

FactoryGirlStepHelpers::HumanHashToAttributeHash

Attributes

associations[R]

Public Class Methods

new(human_hash, associations) click to toggle source
# File lib/factory_girl/step_definitions.rb, line 9
def initialize(human_hash, associations)
  @human_hash   = human_hash
  @associations = associations
end

Public Instance Methods

attributes(strategy = CreateAttributes) click to toggle source
# File lib/factory_girl/step_definitions.rb, line 14
def attributes(strategy = CreateAttributes)
  @human_hash.inject({}) do |attribute_hash, (human_key, value)|
    attributes = strategy.new(self, *process_key_value(human_key, value))
    attribute_hash.merge({ attributes.key => attributes.value })
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.