Class: Fog::Vcloud::Terremark::Ecloud::Vdc

Inherits:
Vdc show all
Defined in:
lib/fog/vcloud/terremark/ecloud/models/vdc.rb

Instance Attribute Summary

Attributes inherited from Model

#connection

Instance Method Summary collapse

Methods inherited from Model

delete_attribute, inherited, #merge_get_raw_result, #reload

Methods inherited from Model

#collection, #initialize, #inspect, #reload, #to_json, #wait_for

Methods included from Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity

Methods included from Attributes::InstanceMethods

#_dump, #attributes, #identity, #identity=, #merge_attributes, #new_record?, #requires

Constructor Details

This class inherits a constructor from Fog::Model

Instance Method Details

#internet_servicesObject



21
22
23
24
25
# File 'lib/fog/vcloud/terremark/ecloud/models/vdc.rb', line 21

def internet_services
  @internet_services ||= Fog::Vcloud::Terremark::Ecloud::InternetServices.
    new( :connection => connection,
         :href => href.to_s.gsub('vdc','extensions/vdc') + "/internetServices" )
end

#public_ipsObject



16
17
18
19
# File 'lib/fog/vcloud/terremark/ecloud/models/vdc.rb', line 16

def public_ips
  @public_ips ||= Fog::Vcloud::Terremark::Ecloud::PublicIps.new( :connection => connection,
                                                                 :href => other_links.detect { |link| link.type == "application/vnd.tmrk.ecloud.publicIpsList+xml" }.href )
end