Class: Scalingo::Api

Inherits:
Object
  • Object
show all
Includes:
Connection, Endpoint, JWT, RegionsCache, Request
Defined in:
lib/scalingo/api.rb

Direct Known Subclasses

Client

Constant Summary

Constants included from Request

Request::REQUEST_METHODS

Instance Method Summary collapse

Methods included from RegionsCache

#region_api_endpoint

Methods included from Endpoint

included

Methods included from Endpoint::ClassMethods

#resources

Constructor Details

#initialize(options = {}) ⇒ Api

Returns a new instance of Api.



12
13
14
15
16
17
# File 'lib/scalingo/api.rb', line 12

def initialize(options = {})
  options = Scalingo.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end