Sha256: 38da8d156a1b7a077aa7fe34544243a85f3f5736deb5c978e8272606a9d0ac8c
Contents?: true
Size: 419 Bytes
Versions: 3
Compression:
Stored size: 419 Bytes
Contents
module Radriar module Roar module Links def add_links(endpoint) links = {} links[:self] = { href: endpoint.request.path } links[:first] = { href: endpoint.first_page } links[:prev] = { href: endpoint.previous_page } links[:next] = { href: endpoint.next_page } links[:last] = { href: endpoint.last_page} links end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radriar-0.1.0.alpha.3 | lib/radriar/roar/links.rb |
radriar-0.1.0.alpha.2 | lib/radriar/roar/links.rb |
radriar-0.1.0.alpha.1 | lib/radriar/roar/links.rb |