embedly/embedly-ruby — Issue #13: Defining new api methods does not work
Author: felipeelias
Created: 2011-11-26 23:17:27+00:00
State: open

In `embedly/api.rb` says that is possible to add new methods to the api, like this:

```ruby
api = Embedly::API.new
api.api_version[:new_method] = 3
api.new_method :arg1 => '1', :arg2 => '2'
```

But this actually does not work, because in the method missing, you only delegate to methods defined in `@endpoint` ivar.

https://github.com/embedly/embedly-ruby/blob/master/lib/embedly/api.rb#L205

Is this supposed to work this way? If yes, I can send a pull request to fix it.