Sha256: 61ac3b0001d1c4a6373464ca80c8657fe6a4fb0ca3b36ce07bbb1331dca45243

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 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/category'
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::Category
    include Lelylan::Client::Location
    include Lelylan::Client::Subscription
    include Lelylan::Client::Physical
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lelylan-rb-0.1.0 lib/lelylan/client.rb
lelylan-rb-0.0.5 lib/lelylan/client.rb