Class: Fog::Ecloud::MockDataClasses::MockVdcInternetServices
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Ecloud::MockDataClasses::MockVdcInternetServices
show all
- Defined in:
- lib/fog/compute/ecloud.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
638
639
640
|
# File 'lib/fog/compute/ecloud.rb', line 638
def backup_internet_services
@backup_internet_services ||= []
end
|
#href ⇒ Object
620
621
622
|
# File 'lib/fog/compute/ecloud.rb', line 620
def href
_parent.href + "/internetServices"
end
|
#items ⇒ Object
628
629
630
|
# File 'lib/fog/compute/ecloud.rb', line 628
def items
public_ip_internet_services + backup_internet_services
end
|
#name ⇒ Object
624
625
626
|
# File 'lib/fog/compute/ecloud.rb', line 624
def name
"Internet Services"
end
|
#public_ip_internet_services ⇒ Object
632
633
634
635
636
|
# File 'lib/fog/compute/ecloud.rb', line 632
def public_ip_internet_services
_parent.public_ip_collection.items.inject([]) do |services, public_ip|
services + public_ip.internet_service_collection.items
end
end
|