class Cronofy::APIError

Attributes

response[R]

Public Class Methods

new(message, response=nil) click to toggle source
Calls superclass method
# File lib/cronofy/errors.rb, line 14
def initialize(message, response=nil)
  super(message)
  @response = response
end

Public Instance Methods

body() click to toggle source
# File lib/cronofy/errors.rb, line 19
def body
  response.body if response
end
headers() click to toggle source
# File lib/cronofy/errors.rb, line 23
def headers
  response.headers if response
end
inspect() click to toggle source
# File lib/cronofy/errors.rb, line 27
def inspect
  "<#{self.class.name} message=#{message} headers=#{headers.inspect} body=#{body}>"
end