Sha256: 5d3271ecddf35de2ffc2a359e5831ed53a7aeb2dd1301d17c99bd1c1406a6fb9
Contents?: true
Size: 747 Bytes
Versions: 14
Compression:
Stored size: 747 Bytes
Contents
require 'fog/core/model' module Fog module Terremark module Shared class Vdc < Fog::Model identity :id attribute :name attribute :ResourceEntities attribute :AvailableNetworks attribute :links def networks service.networks(:vdc_id => id) end def addresses service.addresses(:vdc_id => id) end def servers service.servers(:vdc_id => id) end def images service.images(:vdc_id => id) end private def href=(new_href) self.id = new_href.split('/').last.to_i end def type=(new_type); end def rel=(new_rel); end end end end end
Version data entries
14 entries across 14 versions & 4 rubygems