class Helium::Client
Constants
- API_VERSION
- HOST
- PROTOCOL
Attributes
api_key[RW]
Public Class Methods
new(opts = {})
click to toggle source
# File lib/helium/client.rb, line 31 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) @headers = opts.fetch(:headers, {}) end
Public Instance Methods
debug?()
click to toggle source
# File lib/helium/client.rb, line 44 def debug? @debug == true end
inspect()
click to toggle source
# File lib/helium/client.rb, line 40 def inspect "<Helium::Client @debug=#{@debug}>" end