Module: Restify::Contextual

Extended by:
Forwardable
Included in:
Collection, Resource
Defined in:
lib/restify/contextual.rb

Instance Method Summary collapse

Instance Method Details

#followRelation

Follow a LOCATION or CONTEXT-LOCATION header.

Returns:

  • (Relation)

    Relation to follow resource.

See Also:



30
# File 'lib/restify/contextual.rb', line 30

delegate follow: :@context

#relationsHashie::Mash

Return hash of all relations.

Returns:

  • (Hashie::Mash)

    Relations.

See Also:



12
# File 'lib/restify/contextual.rb', line 12

delegate relations: :@context

#responseResponse

Return response if available.

Returns:

See Also:



21
# File 'lib/restify/contextual.rb', line 21

delegate response: :@context