Class: GnipApi::Adapters::BaseAdapter
- Inherits:
-
Object
- Object
- GnipApi::Adapters::BaseAdapter
- Defined in:
- lib/gnip_api/adapters/base_adapter.rb
Direct Known Subclasses
Instance Method Summary collapse
- #create_response(request, status, body, headers) ⇒ Object
- #default_timeout ⇒ Object
- #password ⇒ Object
- #username ⇒ Object
Instance Method Details
permalink #create_response(request, status, body, headers) ⇒ Object
[View source]
58 59 60 |
# File 'lib/gnip_api/adapters/base_adapter.rb', line 58 def create_response request, status, body, headers GnipApi::Response.new request, status, body, headers end |
permalink #default_timeout ⇒ Object
[View source]
54 55 56 |
# File 'lib/gnip_api/adapters/base_adapter.rb', line 54 def default_timeout GnipApi.configuration.request_timeout end |
permalink #password ⇒ Object
[View source]
50 51 52 |
# File 'lib/gnip_api/adapters/base_adapter.rb', line 50 def password GnipApi.configuration.password end |
permalink #username ⇒ Object
[View source]
46 47 48 |
# File 'lib/gnip_api/adapters/base_adapter.rb', line 46 def username GnipApi.configuration.user end |