---
title: From The Journal Of Atticus Mendelschmidt III
teaser: We reveal the name of the toad.
tags: news,airbrake
author: Dan Croak
published_on: 2009-03-07
---

The [Hoptoad](http://hoptoadapp.com) frog is named Atticus Mendelschmidt III.
He's had a busy week.

Hot on the heels of the big [Lighthouse
integration](https://thoughtbot.com/blog/hoptoad-and-lighthouse-integration)
announcement, Atticus wants you to know what else he's been up to.

## Codebase

> [Codebase](http://atechmedia.com/codebase) is a software project management
> application with full git hosting &amp; integration. Key features include a
> complete ticketing interface, milestones, wiki, time tracking in addition to
> all the repository browsing features.

When you comment on a ticket, you may want to include a Hoptoad link:

![Codebase comment form][code-comment-form]

[code-comment-form]: http://images.thoughtbot.com/ui/2009-3-6-Picture_10.png

When you post the comment, you'll get a pretty link of Atticus with just the
Hoptoad error number:

![''](http://images.thoughtbot.com/ui/2009-3-6-hoptoad_link.png)

## Hoptoad API Ruby gem

Atticus was vacationing in Avon, CT recently, where he met up with [Steve
Agalloco](http://www.beforeitwasround.com). During afternoon tea, Atticus told
Steve about the [Hoptoad API](http://hoptoadapp.com/pages/api). Before supper
time, Steve had put together the
[hoptoad-api](http://github.com/spagalloco/hoptoad-api) Ruby gem.

Install it and `addressable`, a dependency:

    gem install addressable
    gem install spagalloco-hoptoad-api

Give it your subdomain and <abbr title="Application Programming
Interface">API</abbr> key:

```ruby
require 'rubygems'
require 'hoptoad-api'

Hoptoad.account = 'your_account'
Hoptoad.token   = 'your_account_api_key'
```

## What can I do with the gem

Excellent question. I can see you are very intelligent.

Since the gem is built atop
[ActiveResource](http://api.rubyonrails.org/classes/ActiveResource/Base.html),
you can do anything you would normally do with an ActiveResource client:

```ruby
Hoptoad::Error.find(:all)
Hoptoad::Error.find(12345)
```

Remember that Hoptoad **groups** errors (called **notices** in the returned
data). The `find :all` for Hoptoad <abbr title="Application Programming
Interface">API</abbr> therefore returns the most recent groups of errors based
on the date of their most recent notice. The following test passes:

```ruby
should "find a page of the 30 most recent errors" do
  errors  = Hoptoad::Error.find(:all)
  ordered = errors.sort_by(&:most_recent_notice_at).reverse
  assert_equal ordered, errors
  assert_equal 30, errors.size
end
```

We're interested what people will do with this. Create your own graphs?
Identify trends in your controller data? [Tell us what you come up with or
anything else you'd like from the <abbr title="Application Programming
Interface">API</abbr>](http://help.hoptoadapp.com) and we'll try to make it
happen for you.

## Where will Atticus' travels take him next

If you see Atticus at your local watering hole, buy him a drink and [let us
know](http://thoughtbot.com/contact) what crazy antics he's been up to now.

FYI: _Hoptoad/Airbrake was sold to RackSpace and is now called [Airbrake Bug Tracker](http://airbrake.io)_.
