{"action":"opened","issue":{"url":"https://api.github.com/repos/RailsEventStore/rails_event_store/issues/517","repository_url":"https://api.github.com/repos/RailsEventStore/rails_event_store","labels_url":"https://api.github.com/repos/RailsEventStore/rails_event_store/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/RailsEventStore/rails_event_store/issues/517/comments","events_url":"https://api.github.com/repos/RailsEventStore/rails_event_store/issues/517/events","html_url":"https://github.com/RailsEventStore/rails_event_store/issues/517","id":391795101,"node_id":"MDU6SXNzdWUzOTE3OTUxMDE=","number":517,"title":"Cannot read events when using `of_type`","user":{"login":"mattgrande","id":925945,"node_id":"MDQ6VXNlcjkyNTk0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/925945?v=4","gravatar_id":"","url":"https://api.github.com/users/mattgrande","html_url":"https://github.com/mattgrande","followers_url":"https://api.github.com/users/mattgrande/followers","following_url":"https://api.github.com/users/mattgrande/following{/other_user}","gists_url":"https://api.github.com/users/mattgrande/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgrande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgrande/subscriptions","organizations_url":"https://api.github.com/users/mattgrande/orgs","repos_url":"https://api.github.com/users/mattgrande/repos","events_url":"https://api.github.com/users/mattgrande/events{/privacy}","received_events_url":"https://api.github.com/users/mattgrande/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-17T16:38:42Z","updated_at":"2018-12-17T16:38:42Z","closed_at":null,"author_association":"NONE","body":"Hi all, I'm reading the documentation on this page: https://railseventstore.org/docs/read/\r\n\r\nI'm trying to read all events of a given type:\r\n\r\n```\r\nclient = Rails.configuration.event_store\r\nscope = client.read\r\n              .stream('all')\r\n              .limit(100)\r\n              .of_type([JobStarted, JobStopped])\r\n```\r\n\r\nThis gives me the following error:\r\n\r\n```\r\nNoMethodError: undefined method `of_type' for #<RubyEventStore::Specification:0x00007fc766bcbf58>\r\n```\r\n\r\nWhat am I doing wrong? Is there a better way to read all events of a specific type?\r\n\r\n(Relevant versions: Ruby 2.5.1, Rails 5.2.1.1, RES 0.31.1)"}}
{"actor":{"display_login":"mattgrande"}}