Class: Dnsimple::Struct::Record

Inherits:
Base
  • Object
show all
Defined in:
lib/dnsimple/struct/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.



21
22
23
# File 'lib/dnsimple/struct/record.rb', line 21

def content
  @content
end

#created_atString

Returns When the domain was created in DNSimple.

Returns:

  • (String)

    When the domain was created in DNSimple.



33
34
35
# File 'lib/dnsimple/struct/record.rb', line 33

def created_at
  @created_at
end

#idFixnum

Returns The record ID in DNSimple.

Returns:

  • (Fixnum)

    The record ID in DNSimple.



6
7
8
# File 'lib/dnsimple/struct/record.rb', line 6

def id
  @id
end

#nameString

Returns The record name (without the domain name).

Returns:

  • (String)

    The record name (without the domain name).



18
19
20
# File 'lib/dnsimple/struct/record.rb', line 18

def name
  @name
end

#parent_idFixnum

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

Returns:

  • (Fixnum)

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



12
13
14
# File 'lib/dnsimple/struct/record.rb', line 12

def parent_id
  @parent_id
end

#priorityFixnum

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

Returns:

  • (Fixnum)

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



27
28
29
# File 'lib/dnsimple/struct/record.rb', line 27

def priority
  @priority
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.



30
31
32
# File 'lib/dnsimple/struct/record.rb', line 30

def system_record
  @system_record
end

#ttlFixnum

Returns The TTL value.

Returns:

  • (Fixnum)

    The TTL value.



24
25
26
# File 'lib/dnsimple/struct/record.rb', line 24

def ttl
  @ttl
end

#typeString

Returns The type of record, in uppercase.

Returns:

  • (String)

    The type of record, in uppercase.



15
16
17
# File 'lib/dnsimple/struct/record.rb', line 15

def type
  @type
end

#updated_atString

Returns When the domain was last updated in DNSimple.

Returns:

  • (String)

    When the domain was last updated in DNSimple.



36
37
38
# File 'lib/dnsimple/struct/record.rb', line 36

def updated_at
  @updated_at
end

#zone_idString

Returns The associated zone ID.

Returns:

  • (String)

    The associated zone ID.



9
10
11
# File 'lib/dnsimple/struct/record.rb', line 9

def zone_id
  @zone_id
end