Class: Fog::Ecloud::MockDataClasses::MockVdcInternetServices

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/ecloud/compute.rb

Overview

for Terremark eCloud

Instance Method Summary collapse

Methods inherited from Base

#_parent, base_url, #base_url, base_url=, #first, #initialize, #inspect, #last

Constructor Details

This class inherits a constructor from Fog::Ecloud::MockDataClasses::Base

Instance Method Details

#backup_internet_servicesObject



634
635
636
# File 'lib/fog/ecloud/compute.rb', line 634

def backup_internet_services
  @backup_internet_services ||= []
end

#hrefObject



616
617
618
# File 'lib/fog/ecloud/compute.rb', line 616

def href
  _parent.href + "/internetServices"
end

#itemsObject



624
625
626
# File 'lib/fog/ecloud/compute.rb', line 624

def items
  public_ip_internet_services + backup_internet_services
end

#nameObject



620
621
622
# File 'lib/fog/ecloud/compute.rb', line 620

def name
  "Internet Services"
end

#public_ip_internet_servicesObject



628
629
630
631
632
# File 'lib/fog/ecloud/compute.rb', line 628

def public_ip_internet_services
  _parent.public_ip_collection.items.inject([]) do |services, public_ip|
    services + public_ip.internet_service_collection.items
  end
end