Sha256: 1b47b0d75c5ffd8752dcee02b955dc05f4b818b2a1747cc4590f8933c801a662
Contents?: true
Size: 824 Bytes
Versions: 1
Compression:
Stored size: 824 Bytes
Contents
module XivelyConnector @@connection = nil # Lookup methods delegate to class methods def self.connection @@connection end # Lookup methods delegate to class methods def self.connect(options) raise "A connection can not be established without an :api_key" unless options[:api_key] @@connection = Connection.new(options) end # Lookup methods delegate to class methods def self.find_device_by_id(id, api_key=nil) self.connect(:api_key => api_key) unless api_key.nil? Device.find_by_id(id) end # Base XivelyConnector exception class class XivelyConnectorError < ::Exception; end end require "xively-rb-connector/version" require "xively-rb-connector/logging" require "xively-rb-connector/connection" require "xively-rb-connector/device" require "xively-rb-connector/datastream"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xively-rb-connector-0.1.0 | lib/xively-rb-connector.rb |