Class: Lelylan::Client

Inherits:
Object
  • Object
show all
Includes:
Authentication, Category, Device, Function, History, Location, Physical, Profile, Property, Status, Subscription, Type, Connection, Request
Defined in:
lib/lelylan/client.rb,
lib/lelylan/client/type.rb,
lib/lelylan/client/device.rb,
lib/lelylan/client/status.rb,
lib/lelylan/client/history.rb,
lib/lelylan/client/profile.rb,
lib/lelylan/client/category.rb,
lib/lelylan/client/function.rb,
lib/lelylan/client/location.rb,
lib/lelylan/client/physical.rb,
lib/lelylan/client/property.rb,
lib/lelylan/client/subscription.rb

Defined Under Namespace

Modules: Category, Device, Function, History, Location, Physical, Profile, Property, Status, Subscription, Type

Instance Method Summary collapse

Methods included from Physical

#physical_properties

Methods included from Subscription

#create_subscription, #delete_subscription, #subscription, #subscriptions, #update_subscription

Methods included from Location

#create_location, #delete_location, #location, #locations, #update_location

Methods included from Category

#categories

Methods included from Status

#create_status, #delete_status, #public_statuses, #status, #statuses, #update_status

Methods included from Function

#create_function, #delete_function, #function, #functions, #public_functions, #update_function

Methods included from Property

#create_property, #delete_property, #properties, #property, #public_properties, #update_property

Methods included from Type

#create_type, #delete_type, #public_types, #type, #types, #update_type

Methods included from History

#all_histories, #find_history

Methods included from Device

#activate_device, #create_device, #deactivate_device, #delete_device, #device, #device_privates, #device_properties, #devices, #execute, #update_device

Methods included from Profile

#me

Methods included from Request

#delete, #get, #patch, #post, #put

Methods included from Authentication

#authenticated?, #authentication

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



21
22
23
24
25
26
# File 'lib/lelylan/client.rb', line 21

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