Class: Glare::Instance
- Inherits:
-
Object
- Object
- Glare::Instance
- Defined in:
- lib/glare.rb
Instance Method Summary collapse
- #deregister(fqdn, type) ⇒ Object
-
#initialize ⇒ Instance
constructor
A new instance of Instance.
- #proxied?(fqdn, type) ⇒ Boolean
- #records(fqdn, type) ⇒ Object
- #register(fqdn, destination, type, proxied: false, ttl: 1) ⇒ Object
- #resolve(fqdn, type) ⇒ Object
Constructor Details
#initialize ⇒ Instance
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 |