class Viberroo::Configuration

Stores runtime configuration information.

Attributes

auth_token[RW]

Stores Viber API authentication token. Necessary for the bot to send API requests.

@return [String]

@see Bot#set_webhook

logger[RW]

Specifies logger.

@return [Logger]

parse_response_body[RW]

Specifies whether to parse response body of Bot requests.

@return [true || false]

@see Bot

Public Class Methods

new() click to toggle source
# File lib/viberroo/configuration.rb, line 52
def initialize
  @auth_token = nil

  @logger = Logger.new(STDOUT)
  @logger.formatter = proc do |severity, datetime, _, msg|
    "[#{datetime}] #{severity} Viberroo::Bot #{msg}\n"
  end

  @parse_response_body = true
end