Sha256: 28e95ae6b84de62f046deec40a7ed9a4f7fd310ce0eed499ab9ba3799163f30b

Contents?: true

Size: 1.2 KB

Versions: 3

Compression:

Stored size: 1.2 KB

Contents

require 'lelylan/authentication'
require 'lelylan/connection'
require 'lelylan/request'

require 'lelylan/client/profile'
require 'lelylan/client/device'
require 'lelylan/client/history'
require 'lelylan/client/type'
require 'lelylan/client/property'
require 'lelylan/client/function'
require 'lelylan/client/status'
require 'lelylan/client/location'
require 'lelylan/client/subscription'
require 'lelylan/client/physical'

module Lelylan
  class Client
    attr_accessor(*Configuration::VALID_OPTIONS_KEYS)

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

    # structure related
    include Lelylan::Authentication
    include Lelylan::Connection
    include Lelylan::Request

    # client related
    include Lelylan::Client::Profile
    include Lelylan::Client::Device
    include Lelylan::Client::History
    include Lelylan::Client::Type
    include Lelylan::Client::Property
    include Lelylan::Client::Function
    include Lelylan::Client::Status
    include Lelylan::Client::Location
    include Lelylan::Client::Subscription
    include Lelylan::Client::Physical
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lelylan-rb-0.0.4 lib/lelylan/client.rb
lelylan-rb-0.0.3 lib/lelylan/client.rb
lelylan-rb-0.0.2 lib/lelylan/client.rb