Class: NoSE::Serialize::EntityRepresenter
- Inherits:
-
Representable::Decorator
- Object
- Representable::Decorator
- NoSE::Serialize::EntityRepresenter
- 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
-
#fields ⇒ Object
A simple array of the fields within the entity.
Methods included from Representable::Uncached
Instance Method Details
#fields ⇒ Object
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 |