Class: Route53ARecord::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/route53_a_record/record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/route53_a_record/record.rb', line 3

def name
  @name
end

#ttlObject (readonly)

Returns the value of attribute ttl.



3
4
5
# File 'lib/route53_a_record/record.rb', line 3

def ttl
  @ttl
end

#valueObject (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

#typeObject



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

def type
  'A'
end