Class: Fog::Compute::Terremark::InternetServices
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Terremark::InternetServices
- Defined in:
- lib/fog/compute/terremark/models/internetservices.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
7 8 9 10 |
# File 'lib/fog/compute/terremark/models/internetservices.rb', line 7 def all data = service.get_internet_services(vdc_id).body["InternetServices"] load(data) end |
#get(service_id) ⇒ Object
12 13 14 15 16 |
# File 'lib/fog/compute/terremark/models/internetservices.rb', line 12 def get(service_id) service.get_internet_services(vdc_id) internet_service = services.body["InternetServices"].select {|item| item["Id"] == service_id} new(internet_service) end |
#vdc_id ⇒ Object
18 19 20 |
# File 'lib/fog/compute/terremark/models/internetservices.rb', line 18 def vdc_id @vdc_id ||= service.default_vdc_id end |