Sha256: 233212862f9a61f5203d61ea62b49c22c6f72a77b764164d38e37d146b56eb12
Contents?: true
Size: 862 Bytes
Versions: 1
Compression:
Stored size: 862 Bytes
Contents
require 'helium/client/http' require 'helium/client/users' require 'helium/client/organizations' require 'helium/client/sensors' require 'helium/client/labels' require 'helium/client/elements' module Helium class Client include Helium::Utils include Helium::Client::Http include Helium::Client::Users include Helium::Client::Organizations include Helium::Client::Sensors include Helium::Client::Labels include Helium::Client::Elements API_VERSION = 1 HOST = 'api.helium.com' PROTOCOL = 'https' attr_accessor :api_key def initialize(opts = {}) @api_key = opts.fetch(:api_key) @api_host = opts.fetch(:host, HOST) @debug = opts.fetch(:debug, false) end def inspect "<Helium::Client @debug=#{@debug}>" end def debug? @debug == true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
helium-ruby-0.7.0 | lib/helium/client.rb |