Exception: Weathercom::Client::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/weathercom/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status: nil) ⇒ ApiError

Returns a new instance of ApiError.



5
6
7
8
# File 'lib/weathercom/client.rb', line 5

def initialize(message, status: nil)
  super(message)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



10
11
12
# File 'lib/weathercom/client.rb', line 10

def status
  @status
end