Class: Moneta::Api::Types::HashEntity

Inherits:
Object
  • Object
show all
Includes:
DataMapper
Defined in:
lib/moneta/api/types/hash_entity.rb

Direct Known Subclasses

Profile::Client, Profile::Organization

Instance Method Summary collapse

Methods included from DataMapper

#fill

Instance Method Details

#to_hashObject



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