Class: Zonesync::Parser::Record
- Inherits:
-
Object
- Object
- Zonesync::Parser::Record
- Defined in:
- lib/zonesync/parser.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#host ⇒ Object
Returns the value of attribute host.
- #klass ⇒ Object
-
#rdata ⇒ Object
readonly
Returns the value of attribute rdata.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Instance Method Summary collapse
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
89 90 91 |
# File 'lib/zonesync/parser.rb', line 89 def comment @comment end |
#host ⇒ Object
Returns the value of attribute host.
89 90 91 |
# File 'lib/zonesync/parser.rb', line 89 def host @host end |
#klass ⇒ Object
83 84 85 86 |
# File 'lib/zonesync/parser.rb', line 83 def klass @klass = nil if @klass == "" @klass ||= "IN" end |
#rdata ⇒ Object (readonly)
Returns the value of attribute rdata.
95 96 97 |
# File 'lib/zonesync/parser.rb', line 95 def rdata @rdata end |
#ttl ⇒ Object
Returns the value of attribute ttl.
77 78 79 |
# File 'lib/zonesync/parser.rb', line 77 def ttl @ttl end |
Instance Method Details
#type ⇒ Object
91 92 93 |
# File 'lib/zonesync/parser.rb', line 91 def type self.class.name.split("::").last end |