Class: Pushlet::API

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/pushlet/api.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.gateway_poolObject



7
8
9
# File 'lib/pushlet/api.rb', line 7

def gateway_pool
  @gateway_pool ||= GatewayPool.new
end

.http_basic_auth(user, pass) ⇒ Object



19
20
21
# File 'lib/pushlet/api.rb', line 19

def http_basic_auth(user, pass)
  use AuthMiddleware, user, pass
end

.http_clientObject



15
16
17
# File 'lib/pushlet/api.rb', line 15

def http_client
  @http_client ||= HTTPClient.new
end

.uuidObject



11
12
13
# File 'lib/pushlet/api.rb', line 11

def uuid
  @uuid ||= UUID.new
end

Instance Method Details

#pObject



120
# File 'lib/pushlet/api.rb', line 120

def p; params end