class Workarea::Listrak::OauthError

Attributes

http_response[R]

Public Class Methods

new(http_response) click to toggle source
Calls superclass method
# File lib/workarea/listrak/error.rb, line 8
def initialize(http_response)
  @http_response = http_response
  super(http_response.body)
end

Public Instance Methods

body() click to toggle source
# File lib/workarea/listrak/error.rb, line 13
def body
  @body ||= JSON.parse(http_response.body) rescue nil
end