Class: WeConnect::API
- Inherits:
-
Object
- Object
- WeConnect::API
- Includes:
- Authentication, Connection, WrAPI::Authentication, WrAPI::Connection, WrAPI::Request
- Defined in:
- lib/weconnect/api.rb
Direct Known Subclasses
Constant Summary
Constants included from Authentication
WeConnect::Authentication::REFRESH_URL, WeConnect::Authentication::TOKENS, WeConnect::Authentication::TOKEN_URL
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(options = {}) ⇒ API
constructor
Creates a new API and copies settings from singleton.
Methods included from Authentication
#api_process_token, #auth_tokens, #login, #refresh_token
Methods included from Connection
Constructor Details
Instance Method Details
#config ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/weconnect/api.rb', line 21 def config conf = {} WrAPI::Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end |