class Tagfish::APIResponse

Attributes

http_response[R]

Public Class Methods

new(http_response) click to toggle source
# File lib/tagfish/api_response.rb, line 5
def initialize(http_response)
  @http_response = http_response
end

Public Instance Methods

code() click to toggle source
# File lib/tagfish/api_response.rb, line 15
def code
  Integer(http_response.code)
end
digest() click to toggle source
# File lib/tagfish/api_response.rb, line 19
def digest
  http_response.fetch("Docker-Content-Digest")
end
json() click to toggle source
# File lib/tagfish/api_response.rb, line 11
def json
  JSON.parse(http_response.body)
end