Class: Pushlet::API
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Pushlet::API
- Defined in:
- lib/pushlet/api.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.gateway_pool ⇒ Object
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_client ⇒ Object
15 16 17 |
# File 'lib/pushlet/api.rb', line 15 def http_client @http_client ||= HTTPClient.new end |
.uuid ⇒ Object
11 12 13 |
# File 'lib/pushlet/api.rb', line 11 def uuid @uuid ||= UUID.new end |
Instance Method Details
#p ⇒ Object
120 |
# File 'lib/pushlet/api.rb', line 120 def p; params end |