Class: Fog::DNS::AzureRM::Zones
- Inherits:
-
Collection
- Object
- Collection
- Fog::DNS::AzureRM::Zones
- Defined in:
- lib/fog/azurerm/models/dns/zones.rb
Overview
This class is giving implementation of all/get for Zones.
Instance Method Summary collapse
- #all ⇒ Object
- #check_for_zone(resource_group, name) ⇒ Object
- #get(resource_group, identity) ⇒ Object
Instance Method Details
#all ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/fog/azurerm/models/dns/zones.rb', line 12 def all zones = [] service.list_zones.each do |z| zones << Fog::DNS::AzureRM::Zone.parse(z) end load(zones) end |
#check_for_zone(resource_group, name) ⇒ Object
24 25 26 |
# File 'lib/fog/azurerm/models/dns/zones.rb', line 24 def check_for_zone(resource_group, name) service.check_for_zone(resource_group, name) end |
#get(resource_group, identity) ⇒ Object
20 21 22 |
# File 'lib/fog/azurerm/models/dns/zones.rb', line 20 def get(resource_group, identity) all.find { |f| f.name == identity && f.resource_group == resource_group } end |