Class: Vcloud::Walker::Resource::CatalogItem

Inherits:
Entity
  • Object
show all
Defined in:
lib/vcloud/walker/resource/catalog_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#to_summary

Constructor Details

#initialize(fog_catalog_item) ⇒ CatalogItem

Returns a new instance of CatalogItem.



7
8
9
10
11
12
# File 'lib/vcloud/walker/resource/catalog_item.rb', line 7

def initialize fog_catalog_item
  @id               = fog_catalog_item.id
  @name             = fog_catalog_item.name
  @description      = fog_catalog_item.description
  @vapp_template_id = fog_catalog_item.vapp_template_id
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



5
6
7
# File 'lib/vcloud/walker/resource/catalog_item.rb', line 5

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/vcloud/walker/resource/catalog_item.rb', line 5

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/vcloud/walker/resource/catalog_item.rb', line 5

def name
  @name
end

#vapp_template_idObject (readonly)

Returns the value of attribute vapp_template_id.



5
6
7
# File 'lib/vcloud/walker/resource/catalog_item.rb', line 5

def vapp_template_id
  @vapp_template_id
end