Class: Roistat::Resources::Dashboards

Inherits:
Base
  • Object
show all
Defined in:
lib/roistat/resources/dashboards.rb,
sig/roistat.rbs

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Roistat::Resources::Base

Instance Method Details

#listObject

GET /project/dashboards

Returns:

  • (Object)


5
6
7
# File 'lib/roistat/resources/dashboards.rb', line 5

def list
  client.get("project/dashboards")
end

#widgets(dashboard_id:) ⇒ Object

GET /project/dashboards/dashboardId/widgets

Parameters:

  • dashboard_id: (Integer, String)

Returns:

  • (Object)


10
11
12
# File 'lib/roistat/resources/dashboards.rb', line 10

def widgets(dashboard_id:)
  client.get("project/dashboards/#{dashboard_id}/widgets")
end