Class Sawyer::Relation::Map
In: lib/sawyer/relation.rb
Parent: Object

Methods

<<   []   inspect   keys   new   size   to_h   to_hash  

Public Class methods

Tracks the available next actions for a resource, and issues requests for them.

Public Instance methods

Adds a Relation to the map.

rel - A Relation.

Returns nothing.

Gets the raw Relation by its name.

key - The Symbol name of the Relation.

Returns a Relation.

Gets a list of the Relation names.

Returns an Array of Symbols in no specific order.

Gets the number of mapped Relations.

Returns an Integer.

to_h()

Alias for to_hash

[Validate]