Class: Vra::CatalogType

Inherits:
CatalogBase show all
Defined in:
lib/vra/catalog_type.rb

Overview

Class that represents the Catalog Type

Constant Summary collapse

INDEX_URL =
"/catalog/api/types"

Instance Attribute Summary

Attributes inherited from CatalogBase

#id

Instance Method Summary collapse

Methods inherited from CatalogBase

#entitle!

Constructor Details

#initialize(client, opts = {}) ⇒ CatalogType

Returns a new instance of CatalogType.



24
25
26
27
28
# File 'lib/vra/catalog_type.rb', line 24

def initialize(client, opts = {})
  super
  validate!
  fetch_data
end

Instance Method Details

#base_urlObject



34
35
36
# File 'lib/vra/catalog_type.rb', line 34

def base_url
  data["baseUri"]
end

#config_schemaObject



38
39
40
# File 'lib/vra/catalog_type.rb', line 38

def config_schema
  data["configSchema"]
end

#icon_idObject



42
43
44
# File 'lib/vra/catalog_type.rb', line 42

def icon_id
  data["iconId"]
end

#nameObject



30
31
32
# File 'lib/vra/catalog_type.rb', line 30

def name
  data["name"]
end