Class: Vcloud::Walker::Resource::Catalog
- Defined in:
- lib/vcloud/walker/resource/catalog.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(fog_catalog) ⇒ Catalog
constructor
A new instance of Catalog.
Methods inherited from Entity
Constructor Details
#initialize(fog_catalog) ⇒ Catalog
Returns a new instance of Catalog.
7 8 9 10 11 12 |
# File 'lib/vcloud/walker/resource/catalog.rb', line 7 def initialize(fog_catalog) @id = fog_catalog.id @name = fog_catalog.name @description = fog_catalog.description @items = CatalogItems.new(fog_catalog.catalog_items.all(false)) end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/vcloud/walker/resource/catalog.rb', line 5 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/vcloud/walker/resource/catalog.rb', line 5 def id @id end |
#items ⇒ Object (readonly)
Returns the value of attribute items.
5 6 7 |
# File 'lib/vcloud/walker/resource/catalog.rb', line 5 def items @items end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/vcloud/walker/resource/catalog.rb', line 5 def name @name end |