rmehner/badgeville — pull request #4 by mrnugget (2012-06-18 15:41:29+00:00)
Title: Basic implementation of Badgeville::Group

I took a little steps towards implementing the Group/Mission endpoint of the Badgeville API in the client.
It's just a basic implementation, but it allows to get all the groups for one site:

```ruby
@groups = Badgeville::Group.find_by_site('mysite.com')
```

A little helper makes it easy to get `Reward` objects from one group:

```ruby
@groups.first.rewards # => [#, #]
```

I also tried to add some of the helpers used in other endpoint implementations too: `image_url` and `reward_image_url` are both implemented like `@reward.image_url`, which takes a format as argument.

What do you think?