class WhenIWork::Configuration
Attributes
api_key[RW]
api_version[RW]
cache_enabled[RW]
cache_store[RW]
endpoint[RW]
expires_in[RW]
password[RW]
protocol[RW]
username[RW]
Public Class Methods
new()
click to toggle source
# File lib/wheniwork/configuration.rb, line 6 def initialize setup_base end
Public Instance Methods
setup_base()
click to toggle source
# File lib/wheniwork/configuration.rb, line 10 def setup_base self.api_version = '2' self.protocol = 'https' self.cache_enabled = true self.cache_store = ActiveSupport::Cache::MemoryStore.new self.endpoint = "#{protocol}://api.wheniwork.com/#{api_version}/" self.expires_in = 60 end