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

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

Overview

for Terremark eCloud

Instance Method Summary (collapse)

Methods inherited from Base

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

Methods inherited from Hash

#symbolize_keys!

Constructor Details

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

Instance Method Details

- (Object) backup_internet_services



607
608
609
# File 'lib/fog/ecloud/mock_data_classes.rb', line 607

def backup_internet_services
  @backup_internet_services ||= []
end

- (Object) href



589
590
591
# File 'lib/fog/ecloud/mock_data_classes.rb', line 589

def href
  _parent.href + "/internetServices"
end

- (Object) items



597
598
599
# File 'lib/fog/ecloud/mock_data_classes.rb', line 597

def items
  public_ip_internet_services + backup_internet_services
end

- (Object) name



593
594
595
# File 'lib/fog/ecloud/mock_data_classes.rb', line 593

def name
  "Internet Services"
end

- (Object) public_ip_internet_services



601
602
603
604
605
# File 'lib/fog/ecloud/mock_data_classes.rb', line 601

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