Sha256: fb610ace2da2494c27000d55c96d87de6bd5fbaf9b4334b6bfac903452020b8c
Contents?: true
Size: 387 Bytes
Versions: 25
Compression:
Stored size: 387 Bytes
Contents
module FactoryBot class Decorator class AttributeHash < Decorator def initialize(component, attributes = []) super(component) @attributes = attributes end def attributes @attributes.each_with_object({}) do |attribute_name, result| result[attribute_name] = @component.send(attribute_name) end end end end end
Version data entries
25 entries across 25 versions & 2 rubygems