Sha256: 579a43639d3f69a8c9d0abd3d0b553b65ce5ca9698fd644de55db27c064ec785
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
require 'lelylan/authentication' require 'lelylan/connection' require 'lelylan/request' require 'lelylan/client/devices' require 'lelylan/client/consumptions' require 'lelylan/client/histories' require 'lelylan/client/types' require 'lelylan/client/properties' require 'lelylan/client/functions' require 'lelylan/client/statuses' require 'lelylan/client/categories' require 'lelylan/client/locations' 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 # helper method def find_id(uri) Addressable::URI.parse(uri).basename end # structure related include Lelylan::Authentication include Lelylan::Connection include Lelylan::Request # client related include Lelylan::Client::Devices include Lelylan::Client::Consumptions include Lelylan::Client::Histories include Lelylan::Client::Types include Lelylan::Client::Properties include Lelylan::Client::Functions include Lelylan::Client::Statuses include Lelylan::Client::Categories include Lelylan::Client::Locations end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lelylan-rb-0.0.1 | lib/lelylan/client.rb |