class NoSE::Serialize::EntityFieldRepresenter

Represents all data of a field

Public Instance Methods

entity() click to toggle source

The entity name for foreign keys @return [String]

# File lib/nose/serialize.rb, line 161
def entity
  represented.entity.name \
    if represented.is_a? Fields::ForeignKeyField
end
relationship() click to toggle source

The cardinality of the relationship @return [Symbol]

# File lib/nose/serialize.rb, line 169
def relationship
  represented.relationship \
    if represented.is_a? Fields::ForeignKeyField
end
reverse() click to toggle source

The reverse @return [String]

# File lib/nose/serialize.rb, line 177
def reverse
  represented.reverse.name \
    if represented.is_a? Fields::ForeignKeyField
end