Class: AlPapi::RequestError

Inherits:
Object
  • Object
show all
Defined in:
lib/al_papi/request_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code, path, params) ⇒ RequestError

Returns a new instance of RequestError.



5
6
7
# File 'lib/al_papi/request_error.rb', line 5

def initialize(message, code, path, params) # @private
  @message, @code, @path, @params = message, code, path, params
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/al_papi/request_error.rb', line 3

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/al_papi/request_error.rb', line 3

def message
  @message
end

#paramsObject (readonly)

Returns the value of attribute params.



3
4
5
# File 'lib/al_papi/request_error.rb', line 3

def params
  @params
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/al_papi/request_error.rb', line 3

def path
  @path
end