Class: KRL_CMD::User

Inherits:
KynetxAmApi::User
  • Object
show all
Defined in:
lib/user.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ User

Returns a new instance of User.



8
9
10
11
12
13
14
15
16
# File 'lib/user.rb', line 8

def initialize(opts={})
  KynetxAmApi::Oauth.api_server_url = "http://apps.kynetx.com"
  KynetxAmApi::Oauth.accounts_server_url = "https://apps.kynetx.com"
  KynetxAmApi::Oauth.consumer_key = "1j54YDLUcLW9ERBKalNm"
  KynetxAmApi::Oauth.consumer_secret = "QiWCbvTpCAejoceV3f6dD8ycifEkSumFAW1VSmwC"
  raise "Unable to authenticate. You need to run krl-connect." unless File.exists? CONFIG_FILE
  config = YAML::load_file(CONFIG_FILE)
  super(opts.merge(config))
end