Class: VCloudSdk::CatalogItem
- Inherits:
-
Object
- Object
- VCloudSdk::CatalogItem
- 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
- #href ⇒ Object
-
#initialize(session, link) ⇒ CatalogItem
constructor
A new instance of CatalogItem.
- #name ⇒ Object
- #type ⇒ Object
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
#href ⇒ Object
22 23 24 |
# File 'lib/ruby_vcloud_sdk/catalog_item.rb', line 22 def href entity_xml.entity[:href] end |
#name ⇒ Object
14 15 16 |
# File 'lib/ruby_vcloud_sdk/catalog_item.rb', line 14 def name entity_xml.entity[:name] end |
#type ⇒ Object
18 19 20 |
# File 'lib/ruby_vcloud_sdk/catalog_item.rb', line 18 def type entity_xml.entity[:type] end |