class Pdns::Record
- Pdns::Record
- Reference
- Object
Overview
The Record object represents a single record.
Included Modules
- JSON::Serializable
Defined in:
pdns/record.crConstructors
- .new(pull : JSON::PullParser)
-
.new(content : String) : self
Initialize a new Record with the given content
-
.new(*, content, disabled = false, set_ptr = nil)
Initialize a new Record with the given attributes
Instance Method Summary
-
#content : String
The content of this record
-
#content=(content : String)
The content of this record
-
#disabled : Bool
Whether or not this record is disabled
-
#disabled=(disabled : Bool)
Whether or not this record is disabled
- #set_ptr : Bool?
- #set_ptr=(set_ptr : Bool?)
Constructor Detail
def self.new(content : String) : self
#
Initialize a new Record with the given content
Record.new("127.0.0.1")
Initialize a new Record with the given attributes
Record.new(content: "127.0.0.1", disabled: true)