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.
90 91 92 |
# File 'lib/zonesync/parser.rb', line 90 def comment @comment end |
#host ⇒ Object
Returns the value of attribute host.
90 91 92 |
# File 'lib/zonesync/parser.rb', line 90 def host @host end |
#klass ⇒ Object
84 85 86 87 |
# File 'lib/zonesync/parser.rb', line 84 def klass @klass = nil if @klass == "" @klass ||= "IN" end |
#rdata ⇒ Object (readonly)
Returns the value of attribute rdata.
96 97 98 |
# File 'lib/zonesync/parser.rb', line 96 def rdata @rdata end |
#ttl ⇒ Object
Returns the value of attribute ttl.
78 79 80 |
# File 'lib/zonesync/parser.rb', line 78 def ttl @ttl end |
Instance Method Details
#type ⇒ Object
92 93 94 |
# File 'lib/zonesync/parser.rb', line 92 def type T.must(self.class.name).split("::").last end |