Exception: UrbanMapping::RequestError
- Defined in:
- lib/urban-mapping-api.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(code, url, message) ⇒ RequestError
constructor
A new instance of RequestError.
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, ) @code = code @url = url @message = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/urban-mapping-api.rb', line 10 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
10 11 12 |
# File 'lib/urban-mapping-api.rb', line 10 def @message end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
10 11 12 |
# File 'lib/urban-mapping-api.rb', line 10 def url @url end |