Class: AlPapi::RequestError
- Inherits:
-
Object
- Object
- AlPapi::RequestError
- Defined in:
- lib/al_papi/request_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(message, code, path, params) ⇒ RequestError
constructor
A new instance of RequestError.
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(, code, path, params) # @private @message, @code, @path, @params = , code, path, params end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/al_papi/request_error.rb', line 3 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/al_papi/request_error.rb', line 3 def @message end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/al_papi/request_error.rb', line 3 def params @params end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/al_papi/request_error.rb', line 3 def path @path end |