Class: DashboardResource
- Includes:
- HTTParty
- Defined in:
- lib/onvo/dashboard/dashboard_resource.rb
Overview
The default template for an Onvo Dashboard Resource
Direct Known Subclasses
Instance Attribute Summary collapse
-
#dashboard_id ⇒ Object
Returns the value of attribute dashboard_id.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(dashboard_id, endpoint, api_key) ⇒ DashboardResource
constructor
A new instance of DashboardResource.
Methods inherited from Resource
#base_delete, #base_get, #base_post, #base_put, #base_request, #merge_options
Constructor Details
#initialize(dashboard_id, endpoint, api_key) ⇒ DashboardResource
Returns a new instance of DashboardResource.
11 12 13 14 15 |
# File 'lib/onvo/dashboard/dashboard_resource.rb', line 11 def initialize(dashboard_id, endpoint, api_key) @dashboard_id = dashboard_id @endpoint = endpoint super(endpoint, api_key) end |
Instance Attribute Details
#dashboard_id ⇒ Object
Returns the value of attribute dashboard_id.
9 10 11 |
# File 'lib/onvo/dashboard/dashboard_resource.rb', line 9 def dashboard_id @dashboard_id end |