Class: Dnsimple::Struct::ZoneRecord

Inherits:
Base
  • Object
show all
Defined in:
lib/dnsimple/struct/zone_record.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Dnsimple::Struct::Base

Instance Attribute Details

#contentString

Returns The plain-text record content.

Returns:

  • (String)

    The plain-text record content.


23
24
25
# File 'lib/dnsimple/struct/zone_record.rb', line 23

def content
  @content
end

#created_atString

Returns When the record was created in DNSimple.

Returns:

  • (String)

    When the record was created in DNSimple.


38
39
40
# File 'lib/dnsimple/struct/zone_record.rb', line 38

def created_at
  @created_at
end

#idInteger

Returns The record ID in DNSimple.

Returns:

  • (Integer)

    The record ID in DNSimple.


8
9
10
# File 'lib/dnsimple/struct/zone_record.rb', line 8

def id
  @id
end

#nameString

Returns The record name (without the domain name).

Returns:

  • (String)

    The record name (without the domain name).


20
21
22
# File 'lib/dnsimple/struct/zone_record.rb', line 20

def name
  @name
end

#parent_idInteger

Returns The ID of the parent record, if this record is dependent on another record.

Returns:

  • (Integer)

    The ID of the parent record, if this record is dependent on another record.


14
15
16
# File 'lib/dnsimple/struct/zone_record.rb', line 14

def parent_id
  @parent_id
end

#priorityInteger

Returns The priority value, if the type of record accepts a priority.

Returns:

  • (Integer)

    The priority value, if the type of record accepts a priority.


29
30
31
# File 'lib/dnsimple/struct/zone_record.rb', line 29

def priority
  @priority
end

#regionsArray<String>

Returns The regions where the record is propagated. This is optional.

Returns:

  • (Array<String>)

    The regions where the record is propagated. This is optional.


35
36
37
# File 'lib/dnsimple/struct/zone_record.rb', line 35

def regions
  @regions
end

#system_recordBool

Returns True if this is a system record created by DNSimple. System records are read-only.

Returns:

  • (Bool)

    True if this is a system record created by DNSimple. System records are read-only.


32
33
34
# File 'lib/dnsimple/struct/zone_record.rb', line 32

def system_record
  @system_record
end

#ttlInteger

Returns The TTL value.

Returns:

  • (Integer)

    The TTL value.


26
27
28
# File 'lib/dnsimple/struct/zone_record.rb', line 26

def ttl
  @ttl
end

#typeString

Returns The type of record, in uppercase.

Returns:

  • (String)

    The type of record, in uppercase.


17
18
19
# File 'lib/dnsimple/struct/zone_record.rb', line 17

def type
  @type
end

#updated_atString

Returns When the record was last updated in DNSimple.

Returns:

  • (String)

    When the record was last updated in DNSimple.


41
42
43
# File 'lib/dnsimple/struct/zone_record.rb', line 41

def updated_at
  @updated_at
end

#zone_idString

Returns The associated zone ID.

Returns:

  • (String)

    The associated zone ID.


11
12
13
# File 'lib/dnsimple/struct/zone_record.rb', line 11

def zone_id
  @zone_id
end