Class: NoSE::Serialize::EntityRepresenter

Inherits:
Representable::Decorator
  • Object
show all
Includes:
Representable::Hash, Representable::JSON, Representable::Uncached, Representable::YAML
Defined in:
lib/nose/serialize.rb

Overview

Represent the whole entity and its fields

Instance Method Summary collapse

Methods included from Representable::Uncached

#representable_map

Instance Method Details

#fieldsObject

A simple array of the fields within the entity



218
219
220
# File 'lib/nose/serialize.rb', line 218

def fields
  represented.fields.values + represented.foreign_keys.values
end