class Gorilla::Response

Attributes

response[R]

Public Class Methods

new(response) click to toggle source
# File lib/gorilla/response.rb, line 6
def initialize(response)
  @response = response
end

Public Instance Methods

body() click to toggle source
# File lib/gorilla/response.rb, line 10
def body
  response.body
end
error() click to toggle source
# File lib/gorilla/response.rb, line 26
def error
  body[:error]
end
error?() click to toggle source
# File lib/gorilla/response.rb, line 22
def error?
  body[:error] != nil
end
status() click to toggle source
# File lib/gorilla/response.rb, line 14
def status
  response.status
end
success?() click to toggle source
# File lib/gorilla/response.rb, line 18
def success?
  !error?
end