Class: Vra::CatalogType
- Inherits:
-
CatalogBase
- Object
- CatalogBase
- Vra::CatalogType
- 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
Instance Method Summary collapse
- #base_url ⇒ Object
- #config_schema ⇒ Object
- #icon_id ⇒ Object
-
#initialize(client, opts = {}) ⇒ CatalogType
constructor
A new instance of CatalogType.
- #name ⇒ Object
Methods inherited from CatalogBase
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_url ⇒ Object
34 35 36 |
# File 'lib/vra/catalog_type.rb', line 34 def base_url data["baseUri"] end |
#config_schema ⇒ Object
38 39 40 |
# File 'lib/vra/catalog_type.rb', line 38 def config_schema data["configSchema"] end |
#icon_id ⇒ Object
42 43 44 |
# File 'lib/vra/catalog_type.rb', line 42 def icon_id data["iconId"] end |
#name ⇒ Object
30 31 32 |
# File 'lib/vra/catalog_type.rb', line 30 def name data["name"] end |