Sha256: 495aa1be945c7000efcd2b1c3f33421e73e67f5458bb43f2d9bddcdfa94e958f
Contents?: true
Size: 982 Bytes
Versions: 3
Compression:
Stored size: 982 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) @api_version = opts.fetch(:api_version, API_VERSION) @verify_peer = opts.fetch(:verify_peer, true) @debug = opts.fetch(:debug, false) end def inspect "<Helium::Client @debug=#{@debug}>" end def debug? @debug == true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
helium-ruby-0.17.0 | lib/helium/client.rb |
helium-ruby-0.16.0 | lib/helium/client.rb |
helium-ruby-0.15.0 | lib/helium/client.rb |