Class: Mapbox::Html

Inherits:
Base
  • Object
show all
Defined in:
lib/mapbox/html.rb

Overview

Html map

Instance Attribute Summary

Attributes inherited from Base

#access_token, #access_token_secret, #lat, #lon, #map_option, #map_type, #mapid, #overlays, #x, #y, #z, #zoom

Instance Method Summary collapse

Methods inherited from Base

#base_url, #connection, #llz, #parameters_check, #wh

Constructor Details

#initialize(opts = {}) ⇒ Html

Returns a new instance of Html.



6
7
8
9
# File 'lib/mapbox/html.rb', line 6

def initialize(opts = {})
  super(opts)
  @map_type = 'html'
end

Instance Method Details

#responseObject



11
12
13
# File 'lib/mapbox/html.rb', line 11

def response
  get.body
end