Module: Restfulie::Client::HTTP::LinkHeader
- Defined in:
- lib/restfulie/client/http/link_header.rb
Overview
Adds support to extracting and navigating through a link in the representation header.
Instance Method Summary collapse
Instance Method Details
#link(rel) ⇒ Object
11 12 13 |
# File 'lib/restfulie/client/http/link_header.rb', line 11 def link(rel) links[rel] end |
#links ⇒ Object
6 7 8 9 |
# File 'lib/restfulie/client/http/link_header.rb', line 6 def links r = link_header_to_array Medie::Xml::Links.new(r) end |