Sha256: f4bfa6f16f90435ab71aecc22bddbcdc4dfebd7f160e76febdd47cd02ecbc5a2

Contents?: true

Size: 736 Bytes

Versions: 2

Compression:

Stored size: 736 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

    attr_accessor :api_key

    def initialize(opts = {})
      @api_key = opts.fetch(:api_key)
      @debug   = opts.fetch(:debug, false)
    end

    def inspect
      "<Helium::Client @debug=#{@debug}>"
    end

    def debug?
      @debug == true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
helium-ruby-0.6.0 lib/helium/client.rb
helium-ruby-0.5.0 lib/helium/client.rb