Class: Route53

Inherits:
Switcher
  • Object
show all
Defined in:
lib/route53_auto.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, domain_name) ⇒ Route53

Returns a new instance of Route53.



9
10
11
12
13
14
15
16
# File 'lib/route53_auto.rb', line 9

def initialize(id, domain_name)
  super(id)
  puts "\nswitcher initialized" if @switcher
  @client = r53_client_connect
  puts 'Client auth successfull' if @client
  @r53 = auto_change(domain_name)
  puts 'r53 client auth successfull' if @r53
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



6
7
8
# File 'lib/route53_auto.rb', line 6

def client
  @client
end

#r53Object

Returns the value of attribute r53.



7
8
9
# File 'lib/route53_auto.rb', line 7

def r53
  @r53
end

Instance Method Details

#r53_client_connectObject



18
19
20
# File 'lib/route53_auto.rb', line 18

def r53_client_connect
  Aws::Route53::Client.new(region: @region, credentials: @credentials)
end

#reloadObject



22
23
24
# File 'lib/route53_auto.rb', line 22

def reload
  @client = self.r53_client_connect
end