Class: VCloudSdk::CatalogItem

Inherits:
Object
  • Object
show all
Includes:
Infrastructure
Defined in:
lib/ruby_vcloud_sdk/catalog_item.rb

Overview

Represents the calalog item in calalog.

Constant Summary

Constants included from Infrastructure

Infrastructure::ERROR_STATUSES, Infrastructure::SUCCESS_STATUS

Instance Method Summary collapse

Constructor Details

#initialize(session, link) ⇒ CatalogItem

Returns a new instance of CatalogItem.



9
10
11
12
# File 'lib/ruby_vcloud_sdk/catalog_item.rb', line 9

def initialize(session, link)
  @session = session
  @link = link
end

Instance Method Details

#hrefObject



22
23
24
# File 'lib/ruby_vcloud_sdk/catalog_item.rb', line 22

def href
  entity_xml.entity[:href]
end

#nameObject



14
15
16
# File 'lib/ruby_vcloud_sdk/catalog_item.rb', line 14

def name
  entity_xml.entity[:name]
end

#typeObject



18
19
20
# File 'lib/ruby_vcloud_sdk/catalog_item.rb', line 18

def type
  entity_xml.entity[:type]
end