Class: TutumNodeTypes

Inherits:
TutumApi show all
Defined in:
lib/tutum_node_types.rb

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

#listObject



6
7
8
# File 'lib/tutum_node_types.rb', line 6

def list
  http_get(list_url)
end

#list_urlObject



2
3
4
# File 'lib/tutum_node_types.rb', line 2

def list_url
  "/nodetype/"
end