Class: Mapboxkit::Client
- Inherits:
-
Object
- Object
- Mapboxkit::Client
- Includes:
- Connection, Styles, Configurable
- Defined in:
- lib/mapboxkit/client.rb,
lib/mapboxkit/connection.rb,
lib/mapboxkit/client/styles.rb
Overview
Client for the Mapbox API
Defined Under Namespace
Modules: Connection, Styles
Constant Summary
Constants included from Connection
Connection::DEFAULT_REQUEST_CONTENT_TYPE
Instance Method Summary collapse
-
#initialize(**options) ⇒ Client
constructor
A new instance of Client.
Methods included from Styles
#add_image_to_sprite, #add_images_to_sprite, #create_style, #delete_image_from_sprite, #delete_images_from_sprite, #delete_style, #embeddable_html, #protect_style, #sprite, #style, #style_zip_bundle, #styles, #update_style, #wmts_document
Methods included from Connection
#connection, #delete, #get, #patch, #post, #put, #request
Methods included from Configurable
Constructor Details
#initialize(**options) ⇒ Client
Returns a new instance of Client.
19 20 21 22 23 24 25 26 27 |
# File 'lib/mapboxkit/client.rb', line 19 def initialize(**) configure do |config| .each do |key, value| next unless Configurable::Config::KEYS.include?(key) config.public_send(:"#{key}=", value) end end end |