Module: Substance::Objects::Attributes

Extended by:
ActiveSupport::Concern
Included in:
AttributeObject
Defined in:
lib/substance/objects/attributes.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



30
31
32
# File 'lib/substance/objects/attributes.rb', line 30

def to_h
  _attributes.each_with_object({}) { |attr, hash| hash[attr] = public_send(attr) }
end