class Smyte::Config

Attributes

api_key[W]
api_secret[W]
logger[RW]
webhook_secret[W]

Public Instance Methods

api_key() click to toggle source
# File lib/smyte/config.rb, line 6
def api_key
  return @api_key if @api_key
  raise "Smyte api_key not set"
end
api_secret() click to toggle source
# File lib/smyte/config.rb, line 11
def api_secret
  return @api_secret if @api_secret
  raise "Smyte api_secret not set"
end
enabled() click to toggle source
# File lib/smyte/config.rb, line 25
def enabled
  return true if @enabled.nil?
  @enabled
end
enabled=(input) click to toggle source
# File lib/smyte/config.rb, line 21
def enabled=input
  @enabled = !!(input.to_s =~ /^(t|1|y|ok)/)
end
enabled?() click to toggle source
# File lib/smyte/config.rb, line 30
def enabled?
  enabled
end
webhook_secret() click to toggle source
# File lib/smyte/config.rb, line 16
def webhook_secret
  return @webhook_secret if @webhook_secret
  raise "Smyte webhook_secret not set"
end