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


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

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

#passwordObject


50
51
52
# File 'lib/gnip_api/adapters/base_adapter.rb', line 50

def password
  GnipApi.configuration.password
end

#usernameObject


46
47
48
# File 'lib/gnip_api/adapters/base_adapter.rb', line 46

def username
  GnipApi.configuration.user
end