Class: Datacentred::Request::Usage
- Defined in:
- lib/datacentred/request/usage.rb
Overview
RESTful API requests for the usage endpoints.
Class Method Summary collapse
-
.show(year, month) ⇒ Hash
Retrieve account usage data for a given year/month.
Methods inherited from Base
Class Method Details
.show(year, month) ⇒ Hash
Retrieve account usage data for a given year/month.
GET /api/usage/2017/9
14 15 16 |
# File 'lib/datacentred/request/usage.rb', line 14 def self.show(year, month) get("usage/#{year}/#{month}") end |