{"action":"created","issue":{"url":"https://api.github.com/repos/basecrm/basecrm-ruby/issues/28","labels_url":"https://api.github.com/repos/basecrm/basecrm-ruby/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/basecrm/basecrm-ruby/issues/28/comments","events_url":"https://api.github.com/repos/basecrm/basecrm-ruby/issues/28/events","html_url":"https://github.com/basecrm/basecrm-ruby/issues/28","id":111534055,"number":28,"title":"`.where` is unusable","user":{"login":"snario","id":1933029,"avatar_url":"https://avatars.githubusercontent.com/u/1933029?v=3","gravatar_id":"","url":"https://api.github.com/users/snario","html_url":"https://github.com/snario","followers_url":"https://api.github.com/users/snario/followers","following_url":"https://api.github.com/users/snario/following{/other_user}","gists_url":"https://api.github.com/users/snario/gists{/gist_id}","starred_url":"https://api.github.com/users/snario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snario/subscriptions","organizations_url":"https://api.github.com/users/snario/orgs","repos_url":"https://api.github.com/users/snario/repos","events_url":"https://api.github.com/users/snario/events{/privacy}","received_events_url":"https://api.github.com/users/snario/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-15T02:42:03Z","updated_at":"2015-10-15T02:58:46Z","closed_at":"2015-10-15T02:58:46Z","body":"The code is:\r\n\r\n```\r\nclient = BaseCRM::Client.new(access_token: \"mykey\")\r\ndeals = client.deals.where(stage_id: 1337)\r\n```\r\n\r\nThe error is:\r\n\r\n```\r\n/Users/lihorne/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/basecrm-1.1.3/lib/basecrm/http_client.rb:51:in `request': undefined method `to_h' for {}:Hash (NoMethodError)\r\n\tfrom /Users/lihorne/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/basecrm-1.1.3/lib/basecrm/http_client.rb:34:in `get'\r\n\tfrom /Users/lihorne/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/basecrm-1.1.3/lib/basecrm/services/deals_service.rb:41:in `where'\r\n\tfrom jobs/base.rb:21:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/basecrm/basecrm-ruby/issues/comments/148267068","html_url":"https://github.com/basecrm/basecrm-ruby/issues/28#issuecomment-148267068","issue_url":"https://api.github.com/repos/basecrm/basecrm-ruby/issues/28","id":148267068,"user":{"login":"snario","id":1933029,"avatar_url":"https://avatars.githubusercontent.com/u/1933029?v=3","gravatar_id":"","url":"https://api.github.com/users/snario","html_url":"https://github.com/snario","followers_url":"https://api.github.com/users/snario/followers","following_url":"https://api.github.com/users/snario/following{/other_user}","gists_url":"https://api.github.com/users/snario/gists{/gist_id}","starred_url":"https://api.github.com/users/snario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snario/subscriptions","organizations_url":"https://api.github.com/users/snario/orgs","repos_url":"https://api.github.com/users/snario/repos","events_url":"https://api.github.com/users/snario/events{/privacy}","received_events_url":"https://api.github.com/users/snario/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T02:58:46Z","updated_at":"2015-10-15T02:58:46Z","body":"Looks like a ruby version issue .. http://stackoverflow.com/questions/31683993/undefined-method-to-h-on-ruby-array"}}