Class: Fog::DNS::AzureRM::RecordSets
- Inherits:
-
Collection
- Object
- Collection
- Fog::DNS::AzureRM::RecordSets
- Defined in:
- lib/fog/azurerm/models/dns/record_sets.rb
Overview
This class is giving implementation of all/get for RecordSets.
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/azurerm/models/dns/record_sets.rb', line 16 def all requires :resource_group requires :zone_name record_sets = [] service.list_record_sets(resource_group, zone_name).each do |r| record_sets << Fog::DNS::AzureRM::RecordSet.parse(r) end load(record_sets) end |
#get(identity, type) ⇒ Object
26 27 28 |
# File 'lib/fog/azurerm/models/dns/record_sets.rb', line 26 def get(identity, type) all.find { |f| f.name == identity && f.type == "Microsoft.Network/dnszones/#{type}" } end |