Class: Fog::Ecloud::MockDataClasses::MockVdcInternetServices
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Ecloud::MockDataClasses::MockVdcInternetServices
show all
- Defined in:
- lib/fog/ecloud/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
605
606
607
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 605
def backup_internet_services
@backup_internet_services ||= []
end
|
#href ⇒ Object
587
588
589
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 587
def href
_parent.href + "/internetServices"
end
|
#items ⇒ Object
595
596
597
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 595
def items
public_ip_internet_services + backup_internet_services
end
|
#name ⇒ Object
591
592
593
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 591
def name
"Internet Services"
end
|
#public_ip_internet_services ⇒ Object
599
600
601
602
603
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 599
def public_ip_internet_services
_parent.public_ip_collection.items.reduce([]) do |services, public_ip|
services + public_ip.internet_service_collection.items
end
end
|