class Knodes::Client
Public Class Methods
new(options={})
click to toggle source
Creates a new client and sets configuration to passed options or their default values
# File lib/knodes/client.rb, line 7 def initialize(options={}) options = Knodes.options.merge(options) Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", options[key]) end end
Public Instance Methods
creds()
click to toggle source
convenience method for returning id/secret
# File lib/knodes/client.rb, line 17 def creds Hash["customer_id" => customer_id, "customer_secret" => customer_secret] end