Class: Splicer::Records::Record
- Inherits:
-
Object
- Object
- Splicer::Records::Record
- Defined in:
- lib/splicer/records/record.rb
Direct Known Subclasses
AAAARecord, ARecord, CNAMERecord, MXRecord, NSRecord, PTRRecord, SPFRecord, SRVRecord, TXTRecord
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Instance Method Summary collapse
-
#initialize(name, ttl) ⇒ Record
constructor
A new instance of Record.
-
#name? ⇒ Boolean
Check to see if the name is nil.
Constructor Details
#initialize(name, ttl) ⇒ Record
Returns a new instance of Record.
9 10 11 12 |
# File 'lib/splicer/records/record.rb', line 9 def initialize(name, ttl) @name = name @ttl = ttl end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/splicer/records/record.rb', line 5 def name @name end |
#ttl ⇒ Object
Returns the value of attribute ttl.
5 6 7 |
# File 'lib/splicer/records/record.rb', line 5 def ttl @ttl end |
Instance Method Details
#name? ⇒ Boolean
Check to see if the name is nil
16 17 18 |
# File 'lib/splicer/records/record.rb', line 16 def name? !!@name end |