class FactoryGirl::Decorator::AttributeHash
Public Class Methods
new(component, attributes = [])
click to toggle source
Calls superclass method
FactoryGirl::Decorator.new
# File lib/factory_girl/decorator/attribute_hash.rb, line 4 def initialize(component, attributes = []) super(component) @attributes = attributes end
Public Instance Methods
attributes()
click to toggle source
# 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