Class: Fog::Vcloud::MockDataClasses::MockVdcInternetServices
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Vcloud::MockDataClasses::MockVdcInternetServices
show all
- Defined in:
- lib/fog/vcloud/mock_data_classes.rb
Overview
Instance Method Summary
collapse
Methods inherited from Base
#_parent, base_url, #base_url, base_url=, #first, #initialize, #inspect, #last
Instance Method Details
#backup_internet_services ⇒ Object
606
607
608
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 606
def backup_internet_services
@backup_internet_services ||= []
end
|
#href ⇒ Object
588
589
590
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 588
def href
_parent.href + "/internetServices"
end
|
#items ⇒ Object
596
597
598
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 596
def items
public_ip_internet_services + backup_internet_services
end
|
#name ⇒ Object
592
593
594
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 592
def name
"Internet Services"
end
|
#public_ip_internet_services ⇒ Object
600
601
602
603
604
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 600
def public_ip_internet_services
_parent.public_ip_collection.items.inject([]) do |services, public_ip|
services + public_ip.internet_service_collection.items
end
end
|