Class: GnipApi::Adapters::BaseAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/gnip_api/adapters/base_adapter.rb

Direct Known Subclasses

HTTPartyAdapter

Instance Method Summary collapse

Instance Method Details

#create_response(request, status, body, headers) ⇒ Object


65
66
67
# File 'lib/gnip_api/adapters/base_adapter.rb', line 65

def create_response request, status, body, headers
  GnipApi::Response.new request, status, body, headers
end

#default_timeoutObject


61
62
63
# File 'lib/gnip_api/adapters/base_adapter.rb', line 61

def default_timeout
  GnipApi.configuration.request_timeout
end

#passwordObject


57
58
59
# File 'lib/gnip_api/adapters/base_adapter.rb', line 57

def password
  GnipApi.configuration.password
end

#usernameObject


53
54
55
# File 'lib/gnip_api/adapters/base_adapter.rb', line 53

def username
  GnipApi.configuration.user
end