Class: Apertur::Resources::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/apertur/resources/stats.rb

Overview

Retrieve account usage statistics.

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ Stats

Returns a new instance of Stats.

Parameters:



8
9
10
# File 'lib/apertur/resources/stats.rb', line 8

def initialize(http)
  @http = http
end

Instance Method Details

#getHash

Get current account statistics.

Returns:

  • (Hash)

    usage statistics (uploads, sessions, storage, etc.)



15
16
17
# File 'lib/apertur/resources/stats.rb', line 15

def get
  @http.request(:get, "/api/v1/stats")
end