Class: Viberroo::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/viberroo/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



14
15
16
17
18
19
20
21
22
23
# File 'lib/viberroo/configuration.rb', line 14

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

Instance Attribute Details

#auth_tokenObject

Returns the value of attribute auth_token.



12
13
14
# File 'lib/viberroo/configuration.rb', line 12

def auth_token
  @auth_token
end

#loggerObject

Returns the value of attribute logger.



12
13
14
# File 'lib/viberroo/configuration.rb', line 12

def logger
  @logger
end

#parse_response_bodyObject

Returns the value of attribute parse_response_body.



12
13
14
# File 'lib/viberroo/configuration.rb', line 12

def parse_response_body
  @parse_response_body
end