class Smarteru::Error

Attributes

code[R]
response[R]

Public Class Methods

new(response) click to toggle source
Calls superclass method
# File lib/smarteru/error.rb, line 5
def initialize(response)
  @response = response
  @code = response.error[:error][:error_id]
  super(response.error[:error][:error_message])
end