Class: BackTyper::Client
- Inherits:
-
Object
- Object
- BackTyper::Client
- Includes:
- HTTParty
- Defined in:
- lib/backtyper/client.rb
Class Method Summary collapse
- .authenticate(key) ⇒ Object
-
.rate_limit ⇒ Object
Check the rate limit status for a given key.
Class Method Details
.authenticate(key) ⇒ Object
9 10 11 |
# File 'lib/backtyper/client.rb', line 9 def self.authenticate(key) default_params :key => key end |
.rate_limit ⇒ Object
Check the rate limit status for a given key. Stats are rolled up hourly.
16 17 18 19 |
# File 'lib/backtyper/client.rb', line 16 def self.rate_limit response = get('/rate_limit_status.json') handle_response(response) end |