Serel::Tag synonyms method does not exist
wjgilmore opened this issue · comments
Hi, the API Reference found at http://serel.tom.is/ states a tag's synonyms can be retrieved like so:
Serel::Tag.find_by_name('c#').synonyms.get
I receive the message:
Serel::Tag.find_by_name("c#").synonyms.get
[INFO][2013-09-04 14:08:42] Making request to /2.0/tags
/c%23/info?site=stackoverflow&key=VusVe59Rkacv7FVLyA9frw%28%28
NoMethodError: undefined method `synonyms' for #<Serel::Tag:0x007fbd8787b3a0>
Indeed, looking at tag.rb
in the source we're told that find_by_name
returns Serel::Tag
, however this class does not seem to offer any such synonyms
method. So what gives? Is the API reference listing part true and part wish list? Or am I misunderstanding something?
Thank you
Jason
See my pull request; I've gone ahead and created the method, works like a charm.