Sha256: a8248c5e1a5b9a184e800541f87158d99c7bb12a634798f172423075bf44ef0a
Contents?: true
Size: 592 Bytes
Versions: 64
Compression:
Stored size: 592 Bytes
Contents
require 'fog/core/model' module Fog module Terremark module Shared class Vdc < Fog::Model identity :id attribute :name def networks connection.networks(:vdc_id => id) end def addresses connection.addresses(:vdc_id => id) end def servers connection.servers(: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
64 entries across 64 versions & 10 rubygems