Class: GnipApi::Configuration
- Inherits:
-
Object
- Object
- GnipApi::Configuration
- Defined in:
- lib/gnip_api/configuration.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#buffer_limit ⇒ Object
Returns the value of attribute buffer_limit.
-
#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
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 |
# File 'lib/gnip_api/configuration.rb', line 6 def initialize @logger = Logger.new('tmp/gnip_api.log') @request_timeout = 60 @debug = false @enable_gzip = true @log_level = Logger::INFO @logger.level = @log_level end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def account @account end |
#buffer_limit ⇒ Object
Returns the value of attribute buffer_limit.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def buffer_limit @buffer_limit end |
#debug ⇒ Object
Returns the value of attribute debug.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def debug @debug end |
#enable_gzip ⇒ Object
Returns the value of attribute enable_gzip.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def enable_gzip @enable_gzip end |
#label ⇒ Object
Returns the value of attribute label.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def label @label end |
#log_level ⇒ Object
Returns the value of attribute log_level.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def logger @logger end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def password @password end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def request_timeout @request_timeout end |
#source ⇒ Object
Returns the value of attribute source.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def source @source end |
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def user @user end |