Exception: GoogleMapStaticImage::ApiError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



9
10
11
# File 'lib/google_map_static_image.rb', line 9

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/google_map_static_image.rb', line 9

def status
  @status
end