Class: Apertur::Resources::Stats
- Inherits:
-
Object
- Object
- Apertur::Resources::Stats
- Defined in:
- lib/apertur/resources/stats.rb
Overview
Retrieve account usage statistics.
Instance Method Summary collapse
-
#get ⇒ Hash
Get current account statistics.
-
#initialize(http) ⇒ Stats
constructor
A new instance of Stats.
Constructor Details
#initialize(http) ⇒ Stats
Returns a new instance of Stats.
8 9 10 |
# File 'lib/apertur/resources/stats.rb', line 8 def initialize(http) @http = http end |
Instance Method Details
#get ⇒ Hash
Get current account statistics.
15 16 17 |
# File 'lib/apertur/resources/stats.rb', line 15 def get @http.request(:get, "/api/v1/stats") end |