Class: Moneta::Api::Types::HashEntity
- Inherits:
-
Object
- Object
- Moneta::Api::Types::HashEntity
- Includes:
- DataMapper
- Defined in:
- lib/moneta/api/types/hash_entity.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods included from DataMapper
Instance Method Details
#to_hash ⇒ Object
7 8 9 10 |
# File 'lib/moneta/api/types/hash_entity.rb', line 7 def to_hash attributes = Moneta::Api::KeyValueSerializer.serialize(self) { 'attribute' => attributes } if attributes.any? end |