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.



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

def content
  @content
end

#created_atString

Returns When the record was created in DNSimple.

Returns:

  • (String)

    When the record was created in DNSimple.



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

def created_at
  @created_at
end

#idInteger

Returns The record ID in DNSimple.

Returns:

  • (Integer)

    The record ID in DNSimple.



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

def id
  @id
end

#nameString

Returns The record name (without the domain name).

Returns:

  • (String)

    The record name (without the domain name).



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

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.



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

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.



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

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.



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

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.



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

def system_record
  @system_record
end

#ttlInteger

Returns The TTL value.

Returns:

  • (Integer)

    The TTL value.



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

def ttl
  @ttl
end

#typeString

Returns The type of record, in uppercase.

Returns:

  • (String)

    The type of record, in uppercase.



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

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.



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

def updated_at
  @updated_at
end

#zone_idString

Returns The associated zone ID.

Returns:

  • (String)

    The associated zone ID.



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

def zone_id
  @zone_id
end