Class: Flowthings::Client

Inherits:
Object
  • Object
show all
Includes:
Connection
Defined in:
lib/flowthings/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



17
18
19
20
21
22
23
24
25
26
# File 'lib/flowthings/client.rb', line 17

def initialize(options={})
  @services = [ApiTask, Drop, Flow, Group, Identity, Mqtt, Share, Token, Track]
  merged_options = Flowthings.options.merge options

  Configuration::VALID_CONFIG_KEYS.each do |key|
    send "#{key}=", merged_options[key]
  end

  service_factory
end