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.
-
#adapter_class ⇒ Object
Returns the value of attribute adapter_class.
-
#label ⇒ Object
Returns the value of attribute label.
-
#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
permalink #initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/gnip_api/configuration.rb', line 5 def initialize @adapter_class = GnipApi::Adapters::HTTPartyAdapter @logger = Logger.new('tmp/gnip_api.log') @request_timeout = 60 end |
Instance Attribute Details
permalink #account ⇒ Object
Returns the value of attribute account.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def account @account end |
permalink #adapter_class ⇒ Object
Returns the value of attribute adapter_class.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def adapter_class @adapter_class end |
permalink #label ⇒ Object
Returns the value of attribute label.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def label @label end |
permalink #logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def logger @logger end |
permalink #password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def password @password end |
permalink #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 |
permalink #source ⇒ Object
Returns the value of attribute source.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def source @source end |
permalink #user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/gnip_api/configuration.rb', line 3 def user @user end |