Class: Glare::Instance

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

Instance Method Summary collapse

Constructor Details

#initializeInstance



26
27
28
# File 'lib/glare.rb', line 26

def initialize
  @client = Domain.new(build_client)
end

Instance Method Details

#deregister(fqdn, type) ⇒ Object



38
39
40
# File 'lib/glare.rb', line 38

def deregister(fqdn, type)
  @client.deregister(fqdn, type)
end

#proxied?(fqdn, type) ⇒ Boolean



42
43
44
# File 'lib/glare.rb', line 42

def proxied?(fqdn, type)
  @client.proxied?(fqdn, type)
end

#records(fqdn, type) ⇒ Object



46
47
48
# File 'lib/glare.rb', line 46

def records(fqdn, type)
  @client.records(fqdn, type)
end

#register(fqdn, destination, type, proxied: false, ttl: 1) ⇒ Object



30
31
32
# File 'lib/glare.rb', line 30

def register(fqdn, destination, type, proxied: false, ttl: 1)
  @client.register(fqdn, destination, type, proxied: proxied, ttl: ttl)
end

#resolve(fqdn, type) ⇒ Object



34
35
36
# File 'lib/glare.rb', line 34

def resolve(fqdn, type)
  @client.resolve(fqdn, type)
end