Module: Neows::Models::LinkNavigation

Includes:
REST::Utils
Included in:
Browse, Feed
Defined in:
lib/neows/models/link_navigation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#links=(value) ⇒ Object


14
# File 'lib/neows/models/link_navigation.rb', line 14

attribute :_links, Neows::Models::Links

Instance Method Details

#nextself

Request the objects next results

Returns:

  • (self)

20
21
22
# File 'lib/neows/models/link_navigation.rb', line 20

def next
  perform_get(links.next.href, self.class)
end

#prevself

Request the objects previous results

Returns:

  • (self)

27
28
29
# File 'lib/neows/models/link_navigation.rb', line 27

def prev
  perform_get(links.prev.href, self.class)
end