1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vcloudng/models/compute/catalog.rb

25 lines
502 B
Ruby
Raw Normal View History

2013-06-18 12:56:19 -04:00
require 'fog/core/model'
module Fog
module Compute
class Vcloudng
class Catalog < Fog::Model
identity :id
attribute :name
attribute :type
attribute :href
attribute :description, :aliases => 'Description'
attribute :is_published, :aliases => 'IsPublished'
def catalog_items
2013-06-18 14:51:12 -04:00
requires :id
service.catalog_items(:catalog => self)
2013-06-18 12:56:19 -04:00
end
end
end
end
end