module Icasework
This module is the main entry point of the Gem
Constants
- AuthenticationError
An API authentication error
- ConfigurationError
- RequestError
A request error
- ResponseError
A response error
- VERSION
Attributes
account[W]
api_key[W]
secret_key[W]
Public Class Methods
account()
click to toggle source
# File lib/icasework.rb, line 26 def account @account || raise( ConfigurationError, 'Icasework.account not configured' ) end
api_key()
click to toggle source
# File lib/icasework.rb, line 32 def api_key @api_key || raise( ConfigurationError, 'Icasework.api_key not configured' ) end
env=(env)
click to toggle source
# File lib/icasework.rb, line 44 def env=(env) @production = (env == 'production') end
production?()
click to toggle source
# File lib/icasework.rb, line 48 def production? @production || false end
secret_key()
click to toggle source
# File lib/icasework.rb, line 38 def secret_key @secret_key || raise( ConfigurationError, 'Icasework.secret_key not configured' ) end