Class: Ecologi::ReportingResource
- Defined in:
- lib/ecologi/resources/reporting.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
- #total_carbon(username:) ⇒ Object
- #total_impact(username:) ⇒ Object
- #total_trees(username:) ⇒ Object
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Ecologi::Resource
Instance Method Details
#total_carbon(username:) ⇒ Object
14 15 16 17 |
# File 'lib/ecologi/resources/reporting.rb', line 14 def total_carbon(username:) response = get_request("users/#{username}/carbon-offset") Report.new response.body end |