Exception: ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/progstr-filer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_responseObject

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_codeObject



28
29
30
# File 'lib/progstr-filer.rb', line 28

def http_code
  server_response["httpCode"]
end

#messageObject



24
25
26
# File 'lib/progstr-filer.rb', line 24

def message
  server_response["message"]
end