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.



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

def comment
  @comment
end

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#klassObject



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

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

#rdataObject (readonly)

Returns the value of attribute rdata.



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

def rdata
  @rdata
end

#ttlObject

Returns the value of attribute ttl.



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

def ttl
  @ttl
end

Instance Method Details

#typeObject



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

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