Class: RightApi::Client::ErrorDetails
- Inherits:
-
Object
- Object
- RightApi::Client::ErrorDetails
- Defined in:
- lib/right_api_client/client.rb
Overview
A helper class for error details
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(me, pt, ps, rq, rs) ⇒ ErrorDetails
constructor
A new instance of ErrorDetails.
Constructor Details
#initialize(me, pt, ps, rq, rs) ⇒ ErrorDetails
Returns a new instance of ErrorDetails.
633 634 635 636 637 638 639 640 |
# File 'lib/right_api_client/client.rb', line 633 def initialize(me, pt, ps, rq, rs) @method = me @path = pt @params = ps @request = rq @response = rs end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
631 632 633 |
# File 'lib/right_api_client/client.rb', line 631 def method @method end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
631 632 633 |
# File 'lib/right_api_client/client.rb', line 631 def params @params end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
631 632 633 |
# File 'lib/right_api_client/client.rb', line 631 def path @path end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
631 632 633 |
# File 'lib/right_api_client/client.rb', line 631 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
631 632 633 |
# File 'lib/right_api_client/client.rb', line 631 def response @response end |
Instance Method Details
#code ⇒ Object
642 643 644 645 |
# File 'lib/right_api_client/client.rb', line 642 def code @response ? @response.code : nil end |