Exception: ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- ApiError
- Defined in:
- lib/progstr-filer.rb
Instance Attribute Summary collapse
-
#server_response ⇒ Object
Returns the value of attribute server_response.
Instance Method Summary collapse
- #http_code ⇒ Object
-
#initialize(server_response) ⇒ ApiError
constructor
A new instance of ApiError.
- #message ⇒ Object
Constructor Details
#initialize(server_response) ⇒ ApiError
Returns a new instance of ApiError.
20 21 22 |
# File 'lib/progstr-filer.rb', line 20 def initialize(server_response) @server_response = server_response end |
Instance Attribute Details
#server_response ⇒ Object
Returns the value of attribute server_response.
18 19 20 |
# File 'lib/progstr-filer.rb', line 18 def server_response @server_response end |
Instance Method Details
#http_code ⇒ Object
28 29 30 |
# File 'lib/progstr-filer.rb', line 28 def http_code server_response["httpCode"] end |
#message ⇒ Object
24 25 26 |
# File 'lib/progstr-filer.rb', line 24 def server_response["message"] end |