Class: Zonesync::Parser::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/zonesync/parser.rb

Direct Known Subclasses

A, CAA, CNAME, MX, NAPTR, NS, PTR, SOA, SRV, SSHFP, TXT

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commentObject

Returns the value of attribute comment.



90
91
92
# File 'lib/zonesync/parser.rb', line 90

def comment
  @comment
end

#hostObject

Returns the value of attribute host.



90
91
92
# File 'lib/zonesync/parser.rb', line 90

def host
  @host
end

#klassObject



84
85
86
87
# File 'lib/zonesync/parser.rb', line 84

def klass
  @klass = nil if @klass == ""
  @klass ||= "IN"
end

#rdataObject (readonly)

Returns the value of attribute rdata.



96
97
98
# File 'lib/zonesync/parser.rb', line 96

def rdata
  @rdata
end

#ttlObject

Returns the value of attribute ttl.



78
79
80
# File 'lib/zonesync/parser.rb', line 78

def ttl
  @ttl
end

Instance Method Details

#typeObject



92
93
94
# File 'lib/zonesync/parser.rb', line 92

def type
  T.must(self.class.name).split("::").last
end