class Pdns::Record

Overview

The Record object represents a single record.

Included Modules

Defined in:

pdns/record.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(content : String) : self #

Initialize a new Record with the given content

Record.new("127.0.0.1")

[View source]
def self.new(*, content, disabled = false, set_ptr = nil) #

Initialize a new Record with the given attributes

Record.new(content: "127.0.0.1", disabled: true)

[View source]

Instance Method Detail

def content : String #

The content of this record


[View source]
def content=(content : String) #

The content of this record


[View source]
def disabled : Bool #

Whether or not this record is disabled


[View source]
def disabled=(disabled : Bool) #

Whether or not this record is disabled


[View source]
def set_ptr : Bool? #

[View source]
def set_ptr=(set_ptr : Bool?) #

[View source]