Sha256: 5f9b14243a819c423b561df6a2f9865663f8cdf2242fb8489e54c371c65dbf04
Contents?: true
Size: 923 Bytes
Versions: 7
Compression:
Stored size: 923 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) @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
7 entries across 7 versions & 1 rubygems