Class: Dashboards

Inherits:
Resource show all
Defined in:
lib/onvo/dashboards.rb

Overview

Dashboard endpoints

Instance Attribute Summary

Attributes inherited from Resource

#options

Instance Method Summary collapse

Methods inherited from Resource

#base_delete, #base_get, #base_post, #base_put, #base_request, #initialize, #merge_options

Constructor Details

This class inherits a constructor from Resource

Instance Method Details

#create(body) ⇒ Object



23
24
25
# File 'lib/onvo/dashboards.rb', line 23

def create(body)
  base_put('/dashboards', body: body)
end

#delete(id) ⇒ Object



15
16
17
# File 'lib/onvo/dashboards.rb', line 15

def delete(id)
  base_delete("/dashboards/#{id}")
end

#get(id) ⇒ Object



11
12
13
# File 'lib/onvo/dashboards.rb', line 11

def get(id)
  base_get("/dashboards/#{id}")
end

#listObject



7
8
9
# File 'lib/onvo/dashboards.rb', line 7

def list
  base_get('/dashboards')
end

#update(id, body) ⇒ Object



19
20
21
# File 'lib/onvo/dashboards.rb', line 19

def update(id, body)
  base_post("/dashboards/#{id}", body: body)
end