Class: TutumNodeTypes
Constant Summary
Constants inherited
from TutumApi
TutumApi::API_VERSION, TutumApi::BASE_API_PATH
Instance Attribute Summary
Attributes inherited from TutumApi
#headers
Instance Method Summary
collapse
Methods inherited from TutumApi
#http_delete, #http_get, #http_patch, #http_post, #initialize, #url
Constructor Details
This class inherits a constructor from TutumApi
Instance Method Details
#get(uuid) ⇒ Object
14
15
16
|
# File 'lib/tutum_node_types.rb', line 14
def get(uuid)
http_get(get_url(uuid))
end
|
#get_url(uuid) ⇒ Object
10
11
12
|
# File 'lib/tutum_node_types.rb', line 10
def get_url(uuid)
"/nodetype/#{uuid}/"
end
|
#list ⇒ Object
6
7
8
|
# File 'lib/tutum_node_types.rb', line 6
def list
http_get(list_url)
end
|
#list_url ⇒ Object
2
3
4
|
# File 'lib/tutum_node_types.rb', line 2
def list_url
"/nodetype/"
end
|