Class: Dnsimple::Struct::ZoneRecord
- Defined in:
- lib/dnsimple/struct/zone_record.rb
Instance Attribute Summary collapse
-
#content ⇒ String
The plain-text record content.
-
#created_at ⇒ String
When the record was created in DNSimple.
-
#id ⇒ Integer
The record ID in DNSimple.
-
#name ⇒ String
The record name (without the domain name).
-
#parent_id ⇒ Integer
The ID of the parent record, if this record is dependent on another record.
-
#priority ⇒ Integer
The priority value, if the type of record accepts a priority.
-
#regions ⇒ Array<String>
The regions where the record is propagated.
-
#system_record ⇒ Bool
True if this is a system record created by DNSimple.
-
#ttl ⇒ Integer
The TTL value.
-
#type ⇒ String
The type of record, in uppercase.
-
#updated_at ⇒ String
When the record was last updated in DNSimple.
-
#zone_id ⇒ String
The associated zone ID.
Method Summary
Methods inherited from Base
Constructor Details
This class inherits a constructor from Dnsimple::Struct::Base
Instance Attribute Details
#content ⇒ String
Returns The plain-text record content.
22 23 24 |
# File 'lib/dnsimple/struct/zone_record.rb', line 22 def content @content end |
#created_at ⇒ String
Returns 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 |
#id ⇒ Integer
Returns The record ID in DNSimple.
7 8 9 |
# File 'lib/dnsimple/struct/zone_record.rb', line 7 def id @id end |
#name ⇒ String
Returns The record name (without the domain name).
19 20 21 |
# File 'lib/dnsimple/struct/zone_record.rb', line 19 def name @name end |
#parent_id ⇒ Integer
Returns 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 |
#priority ⇒ Integer
Returns 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 |
#regions ⇒ Array<String>
Returns 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_record ⇒ Bool
Returns 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 |
#ttl ⇒ Integer
Returns The TTL value.
25 26 27 |
# File 'lib/dnsimple/struct/zone_record.rb', line 25 def ttl @ttl end |
#type ⇒ String
Returns The type of record, in uppercase.
16 17 18 |
# File 'lib/dnsimple/struct/zone_record.rb', line 16 def type @type end |
#updated_at ⇒ String
Returns 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_id ⇒ String
Returns The associated zone ID.
10 11 12 |
# File 'lib/dnsimple/struct/zone_record.rb', line 10 def zone_id @zone_id end |