Class: Viberroo::Configuration
- Inherits:
-
Object
- Object
- Viberroo::Configuration
- Defined in:
- lib/viberroo/configuration.rb
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#parse_response_body ⇒ Object
Returns the value of attribute parse_response_body.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_token ⇒ Object
Returns the value of attribute auth_token.
12 13 14 |
# File 'lib/viberroo/configuration.rb', line 12 def auth_token @auth_token end |
#logger ⇒ Object
Returns the value of attribute logger.
12 13 14 |
# File 'lib/viberroo/configuration.rb', line 12 def logger @logger end |
#parse_response_body ⇒ Object
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 |