Class: Idcf::Dns::Resources::Zone
- Defined in:
- lib/idcf/dns/resources/zone.rb
Overview
Zone resource class
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#records ⇒ Array<Record>
An array of records.
-
#refresh ⇒ Zone
Refresh this zone.
Methods inherited from Base
class_name, generate_readers, inherited, #initialize, #inspect, validator_class
Constructor Details
This class inherits a constructor from Idcf::Dns::Resources::Base
Instance Method Details
#records ⇒ Array<Record>
Returns an array of records.
7 8 9 10 11 |
# File 'lib/idcf/dns/resources/zone.rb', line 7 def records return @record_objects if @record_objects refresh @record_objects = @records.map { |record| Record.new(client, record) } end |
#refresh ⇒ Zone
Refresh this zone
16 17 18 19 |
# File 'lib/idcf/dns/resources/zone.rb', line 16 def refresh self.attributes = client.get_zone(uuid).body self end |