class Dns::CatalogZone::Provider::Knot::Template
Attributes
acls[RW]
id[RW]
masters[RW]
storage[RW]
Public Class Methods
new(hash)
click to toggle source
Calls superclass method
Dns::CatalogZone::Provider::Knot::Attribute::new
# File lib/dns/catalog_zone/provider/knot.rb, line 43 def initialize(hash) super(hash) @masters = [] @acls = [] @notifies = [] end
Public Instance Methods
add_acl(label)
click to toggle source
# File lib/dns/catalog_zone/provider/knot.rb, line 50 def add_acl(label) @acls.push(label) end
add_master(label)
click to toggle source
# File lib/dns/catalog_zone/provider/knot.rb, line 54 def add_master(label) @masters.push(label) end
add_notify(label)
click to toggle source
# File lib/dns/catalog_zone/provider/knot.rb, line 58 def add_notify(label) @notifies.push(label) end
print()
click to toggle source
# File lib/dns/catalog_zone/provider/knot.rb, line 62 def print output_r " - id: #{@id}" output_r " master: [#{@masters.join(', ')}]" unless @masters.empty? output_r " notify: [#{@notifies.join(', ')}]" unless @notifies.empty? output_r " acl: [#{@acls.join(', ')}]" unless @acls.empty? @output end