Closed kobel169 closed 7 years ago
This is expected behaviour - Hashie::Mash
uses #method_missing
to respond to methods named after the keys - so it can't handle keys like count
(because a real #count
method already exists and it is being called instead of the #method_missing
). This is just a warning from the hashie
gem to help you not to mess up. You can suppress it with Hashie.logger = Logger.new(nil)
if it bothers you.
Another option would be to replace Hashie::Mash
with custom value objects here, in vkontakte_api
- but that would tie the gem code to the API format and require a new version release even after the smallest API change.