Class: DnsOne::Backend::HTTPBell

Inherits:
Base show all
Defined in:
lib/dns_one/backend/http_bell.rb

Constant Summary collapse

LOG_DOM_NUM =
10

Instance Method Summary collapse

Methods inherited from Base

#preload_dummy?

Constructor Details

#initialize(conf) ⇒ HTTPBell

Returns a new instance of HTTPBell.



11
12
13
14
15
16
17
# File 'lib/dns_one/backend/http_bell.rb', line 11

def initialize conf
    @conf = conf
    @domains = {}
    @last_id = nil
    update
    listen_updater_bell
end

Instance Method Details

#allow_cacheObject



23
24
25
# File 'lib/dns_one/backend/http_bell.rb', line 23

def allow_cache
    false
end

#find(dom_name) ⇒ Object



19
20
21
# File 'lib/dns_one/backend/http_bell.rb', line 19

def find dom_name
    @domains[dom_name]
end