Class: Dnsimple::Struct::Record
- Defined in:
- lib/dnsimple/struct/record.rb
Instance Attribute Summary collapse
-
#content ⇒ String
The plain-text record content.
-
#created_at ⇒ String
When the domain was created in DNSimple.
-
#id ⇒ Fixnum
The record ID in DNSimple.
-
#name ⇒ String
The record name (without the domain name).
-
#parent_id ⇒ Fixnum
The ID of the parent record, if this record is dependent on another record.
-
#priority ⇒ Fixnum
The priority value, if the type of record accepts a priority.
-
#system_record ⇒ Bool
True if this is a system record created by DNSimple.
-
#ttl ⇒ Fixnum
The TTL value.
-
#type ⇒ String
The type of record, in uppercase.
-
#updated_at ⇒ String
When the domain 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.
21 22 23 |
# File 'lib/dnsimple/struct/record.rb', line 21 def content @content end |
#created_at ⇒ String
Returns When the domain was created in DNSimple.
33 34 35 |
# File 'lib/dnsimple/struct/record.rb', line 33 def created_at @created_at end |
#id ⇒ Fixnum
Returns The record ID in DNSimple.
6 7 8 |
# File 'lib/dnsimple/struct/record.rb', line 6 def id @id end |
#name ⇒ String
Returns The record name (without the domain name).
18 19 20 |
# File 'lib/dnsimple/struct/record.rb', line 18 def name @name end |
#parent_id ⇒ Fixnum
Returns 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 |
#priority ⇒ Fixnum
Returns 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_record ⇒ Bool
Returns 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 |
#ttl ⇒ Fixnum
Returns The TTL value.
24 25 26 |
# File 'lib/dnsimple/struct/record.rb', line 24 def ttl @ttl end |
#type ⇒ String
Returns The type of record, in uppercase.
15 16 17 |
# File 'lib/dnsimple/struct/record.rb', line 15 def type @type end |
#updated_at ⇒ String
Returns 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_id ⇒ String
Returns The associated zone ID.
9 10 11 |
# File 'lib/dnsimple/struct/record.rb', line 9 def zone_id @zone_id end |