class Failbot::HTTPBackend
Public Class Methods
new(url, connect_timeout = nil, timeout_seconds = nil)
click to toggle source
# File lib/failbot/http_backend.rb, line 3 def initialize(url, connect_timeout = nil, timeout_seconds = nil) if url.to_s.empty? raise ArgumentError, "FAILBOT_HAYSTACK_URL setting required." end @haystack = Failbot::Haystack.new(url, connect_timeout, timeout_seconds) end
Public Instance Methods
connect_timeout()
click to toggle source
# File lib/failbot/http_backend.rb, line 23 def connect_timeout @haystack.connect_timeout end
connect_timeout=(timeout)
click to toggle source
# File lib/failbot/http_backend.rb, line 27 def connect_timeout=(timeout) @haystack.connect_timeout = timeout end
ping()
click to toggle source
# File lib/failbot/http_backend.rb, line 19 def ping @haystack.ping end
report(data)
click to toggle source
# File lib/failbot/http_backend.rb, line 11 def report(data) @haystack.send_data(data) end
reports()
click to toggle source
# File lib/failbot/http_backend.rb, line 15 def reports [] end
rw_timeout()
click to toggle source
# File lib/failbot/http_backend.rb, line 31 def rw_timeout @haystack.rw_timeout end
rw_timeout=(timeout)
click to toggle source
# File lib/failbot/http_backend.rb, line 35 def rw_timeout=(timeout) @haystack.rw_timeout = timeout end