Class: GnipApi::Configuration
- Inherits:
-
Object
- Object
- GnipApi::Configuration
- Defined in:
- lib/gnip_api/configuration.rb
Overview
Configurations for the GnipApi gem.
Defaults:
-
logger: *Logger.new(‘tmp/gnip_api.log’)*
-
request_timeout: 60
-
debug: false
-
enable_gzip: true
-
log_level: Logger::WARN
-
buffer_limit: 1000000
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#enable_gzip ⇒ Object
Returns the value of attribute enable_gzip.
-
#label ⇒ Object
Returns the value of attribute label.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#password ⇒ Object
Returns the value of attribute password.
-
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
-
#source ⇒ Object
Returns the value of attribute source.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
15 16 17 18 19 20 |
# File 'lib/gnip_api/configuration.rb', line 15 def initialize @request_timeout = 60 @debug = false @enable_gzip = true @log_level = Logger::WARN end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
12 13 14 |
# File 'lib/gnip_api/configuration.rb', line 12 def account @account end |
#debug ⇒ Object
Returns the value of attribute debug.
12 13 14 |
# File 'lib/gnip_api/configuration.rb', line 12 def debug @debug end |
#enable_gzip ⇒ Object
Returns the value of attribute enable_gzip.
12 13 14 |
# File 'lib/gnip_api/configuration.rb', line 12 def enable_gzip @enable_gzip end |
#label ⇒ Object
Returns the value of attribute label.
12 13 14 |
# File 'lib/gnip_api/configuration.rb', line 12 def label @label end |
#log_level ⇒ Object
Returns the value of attribute log_level.
12 13 14 |
# File 'lib/gnip_api/configuration.rb', line 12 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
12 13 14 |
# File 'lib/gnip_api/configuration.rb', line 12 def logger @logger end |
#password ⇒ Object
Returns the value of attribute password.
12 13 14 |
# File 'lib/gnip_api/configuration.rb', line 12 def password @password end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
12 13 14 |
# File 'lib/gnip_api/configuration.rb', line 12 def request_timeout @request_timeout end |
#source ⇒ Object
Returns the value of attribute source.
12 13 14 |
# File 'lib/gnip_api/configuration.rb', line 12 def source @source end |
#user ⇒ Object
Returns the value of attribute user.
12 13 14 |
# File 'lib/gnip_api/configuration.rb', line 12 def user @user end |