Exception: UrbanMapping::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/urban-mapping-api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, url, message) ⇒ RequestError

Returns a new instance of RequestError.



11
12
13
14
15
# File 'lib/urban-mapping-api.rb', line 11

def initialize(code, url, message)
  @code = code
  @url = url
  @message = message
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/urban-mapping-api.rb', line 10

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



10
11
12
# File 'lib/urban-mapping-api.rb', line 10

def message
  @message
end

#urlObject (readonly)

Returns the value of attribute url.



10
11
12
# File 'lib/urban-mapping-api.rb', line 10

def url
  @url
end