class FactoryBot::Decorator::AttributeHash

def attributes

def attributes
  @attributes.each_with_object({}) do |attribute_name, result|
    result[attribute_name] = @component.send(attribute_name)
  end
end

def initialize(component, attributes = [])

def initialize(component, attributes = [])
  super(component)
  @attributes = attributes
end