Class: Dashboard
- Inherits:
-
Object
- Object
- Dashboard
- Defined in:
- lib/onvo/dashboard.rb
Overview
The Dashboard API
Instance Attribute Summary collapse
-
#datasources ⇒ Object
Returns the value of attribute datasources.
-
#questions ⇒ Object
Returns the value of attribute questions.
-
#sessions ⇒ Object
Returns the value of attribute sessions.
-
#widgets ⇒ Object
Returns the value of attribute widgets.
Instance Method Summary collapse
-
#initialize(dashboard_id, endpoint, api_key) ⇒ Dashboard
constructor
A new instance of Dashboard.
Constructor Details
#initialize(dashboard_id, endpoint, api_key) ⇒ Dashboard
Returns a new instance of Dashboard.
9 10 11 12 13 |
# File 'lib/onvo/dashboard.rb', line 9 def initialize(dashboard_id, endpoint, api_key) params = [dashboard_id, endpoint, api_key] @datasources = DashboardDatasources.new(*params) end |
Instance Attribute Details
#datasources ⇒ Object
Returns the value of attribute datasources.
7 8 9 |
# File 'lib/onvo/dashboard.rb', line 7 def datasources @datasources end |
#questions ⇒ Object
Returns the value of attribute questions.
7 8 9 |
# File 'lib/onvo/dashboard.rb', line 7 def questions @questions end |
#sessions ⇒ Object
Returns the value of attribute sessions.
7 8 9 |
# File 'lib/onvo/dashboard.rb', line 7 def sessions @sessions end |
#widgets ⇒ Object
Returns the value of attribute widgets.
7 8 9 |
# File 'lib/onvo/dashboard.rb', line 7 def @widgets end |