Class: MyTankInfo::SitegroupInventoryDashboardsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/my_tank_info/resources/sitegroup_inventory_dashboards.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#delete_request, #get_request, #initialize, #patch_request, #post_request, #put_request

Constructor Details

This class inherits a constructor from MyTankInfo::Resource

Instance Method Details

#list(sitegroup_id:) ⇒ Object



5
6
7
8
9
10
# File 'lib/my_tank_info/resources/sitegroup_inventory_dashboards.rb', line 5

def list(sitegroup_id:)
  Collection.from_response(
    get_request("api/sitegroups/#{sitegroup_id}/inventory/dashboard"),
    type: SitegroupInventoryDashboard
  )
end