Exception: GoogleMapStaticImage::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- GoogleMapStaticImage::ApiError
- Defined in:
- lib/google_map_static_image.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(status, body) ⇒ ApiError
Returns a new instance of ApiError.
10 11 12 13 14 |
# File 'lib/google_map_static_image.rb', line 10 def initialize(status, body) @status = status @body = body super("Google Maps Static API error #{status}: #{body}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
9 10 11 |
# File 'lib/google_map_static_image.rb', line 9 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'lib/google_map_static_image.rb', line 9 def status @status end |