Exception: Appoxy::Api::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- Appoxy::Api::ClientError
- Defined in:
- lib/api/client_helper.rb
Instance Attribute Summary collapse
-
#response_hash ⇒ Object
readonly
Returns the value of attribute response_hash.
Instance Method Summary collapse
-
#initialize(class_name, response_hash) ⇒ ClientError
constructor
A new instance of ClientError.
Constructor Details
#initialize(class_name, response_hash) ⇒ ClientError
Returns a new instance of ClientError.
15 16 17 18 19 |
# File 'lib/api/client_helper.rb', line 15 def initialize(class_name, response_hash) puts 'response-hash=' + response_hash.inspect super("#{class_name} - #{response_hash["msg"]}") @response_hash = response_hash end |
Instance Attribute Details
#response_hash ⇒ Object (readonly)
Returns the value of attribute response_hash.
13 14 15 |
# File 'lib/api/client_helper.rb', line 13 def response_hash @response_hash end |