Class: Integra365::API
- Inherits:
-
Object
- Object
- Integra365::API
- Includes:
- Authentication, WrAPI::Authentication, WrAPI::Connection, WrAPI::Request
- Defined in:
- lib/integra365/api.rb
Direct Known Subclasses
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(options = {}) ⇒ API
constructor
Creates a new API and copies settings from singleton.
Methods included from Authentication
Constructor Details
#initialize(options = {}) ⇒ API
Creates a new API and copies settings from singleton
11 12 13 14 15 16 |
# File 'lib/integra365/api.rb', line 11 def initialize( = {}) = Integra365..merge() WrAPI::Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Method Details
#config ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/integra365/api.rb', line 18 def config conf = {} WrAPI::Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end |