Hoptoadr

Hoptoadr is an unofficial Hoptoad API in Ruby. Currently covers only querying and resolving errors. For sending errors to Hoptoad use - hoptoad_notifier.

Usage

# Create Hoptoadr instance to interact with the API
hoptoadr = Hoptoadr.new('<YOUR-SUBDOMAIN>', '<API-AUTH-TOKEN>')

# Return all errors that have 
# notices count higher than 100
hoptoadr.errors.select { |e| e.notices_count > 100}

# Mark all active errors as resolved
hoptoadr.errors.each { |e| e.resolve }

# I needed this many times so there's a shortcut 
hoptoadr.resolve_all_errors

Author

Dejan Simic