Class: Zonesync::Parser::CAA
Instance Attribute Summary collapse
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Record
#comment, #host, #klass, #rdata, #ttl
Instance Method Summary collapse
-
#initialize(vars, zonefile_record) ⇒ CAA
constructor
A new instance of CAA.
Methods inherited from Record
Constructor Details
#initialize(vars, zonefile_record) ⇒ CAA
Returns a new instance of CAA.
162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/zonesync/parser.rb', line 162 def initialize(vars, zonefile_record) @vars = vars if zonefile_record self.host = qualify_host(zonefile_record.host.to_s) @vars[:last_host] = host self.ttl = zonefile_record.ttl.to_i self.klass = zonefile_record.klass.to_s self.flags = zonefile_record.flags.to_i self.tag = zonefile_record.tag.to_s self.value = zonefile_record.value.to_s self.comment = zonefile_record.comment&.to_s end end |
Instance Attribute Details
#flags ⇒ Object
Returns the value of attribute flags.
160 161 162 |
# File 'lib/zonesync/parser.rb', line 160 def flags @flags end |
#tag ⇒ Object
Returns the value of attribute tag.
160 161 162 |
# File 'lib/zonesync/parser.rb', line 160 def tag @tag end |
#value ⇒ Object
Returns the value of attribute value.
160 161 162 |
# File 'lib/zonesync/parser.rb', line 160 def value @value end |