class WoerkClient::Configuration
Constants
- API_HOST
- AUTH_TOKEN
Attributes
api_host[RW]
auth_token[RW]
Public Class Methods
new()
click to toggle source
# File lib/woerk_client/configuration.rb, line 12 def initialize @auth_token = config_file[AUTH_TOKEN] @api_host = config_file[API_HOST] || 'https://woerk.net/api' end
Public Instance Methods
config_file()
click to toggle source
# File lib/woerk_client/configuration.rb, line 17 def config_file @file ||= YAML.load_file(ENV['HOME'] + '/.woerk.yml') end