Exception: Appoxy::Api::ClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/api/client_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_hashObject (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