# File lib/factory_girl/decorator/attribute_hash.rb, line 4 def initialize(component, attributes = []) super(component) @attributes = attributes end
# File lib/factory_girl/decorator/attribute_hash.rb, line 9 def attributes @attributes.inject({}) do |result, attribute_name| result[attribute_name] = send(attribute_name) result end end