class Travis::Client::Link
Attributes
href[R]
session[R]
Public Class Methods
new(session, href, payload = {})
click to toggle source
# File lib/travis/client/link.rb, line 6 def initialize(session, href, payload = {}) @session, @href, @payload = session, href, payload end
Public Instance Methods
fetch()
click to toggle source
# File lib/travis/client/link.rb, line 14 def fetch session.fetch(href) end
inspect()
click to toggle source
# File lib/travis/client/link.rb, line 30 def inspect "#<%p:%p>" % [ self.class, href.omit(:scheme, :authority).to_s ] end
limit()
click to toggle source
# File lib/travis/client/link.rb, line 26 def limit @payload['limit'] end
offset()
click to toggle source
# File lib/travis/client/link.rb, line 22 def offset @payload['offset'] end
to_entity()
click to toggle source
# File lib/travis/client/link.rb, line 10 def to_entity fetch end
to_h()
click to toggle source
# File lib/travis/client/link.rb, line 18 def to_h @payload.dup end