Class: SFRest::Usage
- Inherits:
-
Object
- Object
- SFRest::Usage
- Defined in:
- lib/sfrest/usage.rb
Overview
Get all the audit devents.
Instance Method Summary collapse
-
#initialize(conn) ⇒ Usage
constructor
A new instance of Usage.
-
#monthly(stack_id = 1, datum = {}) ⇒ Hash
Gets the montly usage data.
Constructor Details
#initialize(conn) ⇒ Usage
Returns a new instance of Usage.
7 8 9 |
# File 'lib/sfrest/usage.rb', line 7 def initialize(conn) @conn = conn end |
Instance Method Details
#monthly(stack_id = 1, datum = {}) ⇒ Hash
Gets the montly usage data.
40 41 42 43 44 |
# File 'lib/sfrest/usage.rb', line 40 def monthly(stack_id = 1, datum = {}) datum[stack_id] = stack_id current_path = '/api/v1/dynamic-requests/monthly' @conn.get URI.parse(pb.build_url_query(current_path, datum)).to_s end |