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/vcloud/terremark/ecloud/models/network.rb
2010-06-11 01:53:25 +08:00

32 lines
620 B
Ruby

require 'fog/model'
module Fog
module Vcloud
module Terremark
module Ecloud
class Network < Fog::Vcloud::Model
identity :href
attribute :name
attribute :features
attribute :configuration
attribute :ips_link
attribute :type
attribute :xmlns
def ips
unless @loaded
reload
end
@ips ||= Fog::Vcloud::Terremark::Ecloud::Ips.
new( :connection => connection,
:href => ips_link.href )
end
end
end
end
end
end