Class: Vcloud::Walker::Resource::Catalog

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#to_summary

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

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#itemsObject (readonly)

Returns the value of attribute items.



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

def items
  @items
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end