Class: Route53ARecord::Record
- Inherits:
-
Object
- Object
- Route53ARecord::Record
- Defined in:
- lib/route53_a_record/record.rb
Instance Attribute Summary collapse
-
#hosted_zone_id ⇒ Object
readonly
Returns the value of attribute hosted_zone_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#ttl ⇒ Object
readonly
Returns the value of attribute ttl.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(hosted_zone_id, name, value, ttl = 5) ⇒ Record
constructor
A new instance of Record.
- #type ⇒ Object
Constructor Details
#initialize(hosted_zone_id, name, value, ttl = 5) ⇒ Record
Returns a new instance of Record.
5 6 7 8 9 10 |
# File 'lib/route53_a_record/record.rb', line 5 def initialize(hosted_zone_id, name, value, ttl = 5) @hosted_zone_id = hosted_zone_id @name = name @value = value @ttl = ttl end |
Instance Attribute Details
#hosted_zone_id ⇒ Object (readonly)
Returns the value of attribute hosted_zone_id.
3 4 5 |
# File 'lib/route53_a_record/record.rb', line 3 def hosted_zone_id @hosted_zone_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/route53_a_record/record.rb', line 3 def name @name end |
#ttl ⇒ Object (readonly)
Returns the value of attribute ttl.
3 4 5 |
# File 'lib/route53_a_record/record.rb', line 3 def ttl @ttl end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/route53_a_record/record.rb', line 3 def value @value end |
Instance Method Details
#type ⇒ Object
12 13 14 |
# File 'lib/route53_a_record/record.rb', line 12 def type 'A' end |