jwilger/github-v3-api — Issue #5: Invoking .assignee on an Issue with no assignee throws a NameError
Author: tkrajcar
Created: 2011-10-27 20:35:10+00:00
State: open

Looks like `Issue` is missing a `natural_key` definition? Not sure exactly what this is supposed to be doing or I would fork it and submit a patch.

````
irb(main):011:0> @i.assignee
NameError: undefined local variable or method `natural_key' for #
from /var/lib/gems/1.9.1/gems/github-v3-api-0.1.0/lib/github_v3_api/entity.rb:50:in `fetch_data'
from /var/lib/gems/1.9.1/gems/github-v3-api-0.1.0/lib/github_v3_api/entity.rb:27:in `[]'
from /var/lib/gems/1.9.1/gems/github-v3-api-0.1.0/lib/github_v3_api/entity.rb:35:in `block (2 levels) in attr_reader'
from (irb):11
from /usr/bin/irb1.9.1:12:in `

'
````