Class: DashboardResource

Inherits:
Resource show all
Includes:
HTTParty
Defined in:
lib/onvo/dashboard/dashboard_resource.rb

Overview

The default template for an Onvo Dashboard Resource

Direct Known Subclasses

DashboardDatasources

Instance Attribute Summary collapse

Attributes inherited from Resource

#options

Instance Method Summary collapse

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_idObject

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