Module: Zanox::Hashable
- Included in:
- Item
- Defined in:
- lib/zanox/hashable.rb
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
27 28 29 30 31 32 |
# File 'lib/zanox/hashable.rb', line 27 def to_hash attributes.each_with_object({}) do |attr, hash| key = attr.to_s.delete('@').to_sym hash[key] = attribute(attr) end end |