Class: GnipApi::Configuration
- Inherits:
-
Object
- Object
- GnipApi::Configuration
- Defined in:
- lib/gnip_api/configuration.rb
Constant Summary collapse
- OUTPUT_FORMATS =
[:activity, :json, :parsed_json]
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#adapter_class ⇒ Object
Returns the value of attribute adapter_class.
-
#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.
-
#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.
-
#stream_output_format ⇒ Object
Returns the value of attribute stream_output_format.
-
#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.
8 9 10 11 12 13 14 15 |
# File 'lib/gnip_api/configuration.rb', line 8 def initialize @adapter_class = GnipApi::Adapters::HTTPartyAdapter @logger = Logger.new('tmp/gnip_api.log') @request_timeout = 60 @debug = false @stream_output_format = :activity @enable_gzip = true end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def account @account end |
#adapter_class ⇒ Object
Returns the value of attribute adapter_class.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def adapter_class @adapter_class end |
#debug ⇒ Object
Returns the value of attribute debug.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def debug @debug end |
#enable_gzip ⇒ Object
Returns the value of attribute enable_gzip.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def enable_gzip @enable_gzip end |
#label ⇒ Object
Returns the value of attribute label.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def label @label end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def logger @logger end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def password @password end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def request_timeout @request_timeout end |
#source ⇒ Object
Returns the value of attribute source.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def source @source end |
#stream_output_format ⇒ Object
Returns the value of attribute stream_output_format.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def stream_output_format @stream_output_format end |
#user ⇒ Object
Returns the value of attribute user.
5 6 7 |
# File 'lib/gnip_api/configuration.rb', line 5 def user @user end |