{"action":"created","comment":{"url":"https://api.github.com/repos/moove-it/ruy/pulls/comments/68630794","id":68630794,"diff_hunk":"@@ -1,22 +1,25 @@\n module Ruy\n   module Conditions\n \n-    # Expects that a context attribute is included in a set of values.\n+    # Expects that a context attribute is included in a set of values\n+    #\n     class In < Condition\n-      attr_reader :ary, :attr\n+      attr_reader :ary, :key\n \n-      # @param ary Expected set of values\n-      # @param attr Context attribute's name\n-      def initialize(ary, *attrs)\n+      # @param ary\n+      # @param key\n+      # @example check that :key is included in [1,3,5]\n+      #   In.new([1,3,5], :key)\n+      def initialize(ary, *keys)\n         super\n         @ary = ary\n-        @attr = attrs.first if attrs.any?\n+        @key = keys.first if keys.any?\n       end\n \n       def ==(o)\n         o.kind_of?(In) &&\n           o.ary == @ary &&\n-          o.attr == @attr\n+          o.key == @key","path":"lib/ruy/conditions/in.rb","position":29,"original_position":29,"commit_id":"8ab3fa3aeb37329f2c37027d372e87c4002d17a5","original_commit_id":"8ab3fa3aeb37329f2c37027d372e87c4002d17a5","user":{"login":"ignaciovillaverde","id":5333473,"avatar_url":"https://avatars.githubusercontent.com/u/5333473?v=3","gravatar_id":"","url":"https://api.github.com/users/ignaciovillaverde","html_url":"https://github.com/ignaciovillaverde","followers_url":"https://api.github.com/users/ignaciovillaverde/followers","following_url":"https://api.github.com/users/ignaciovillaverde/following{/other_user}","gists_url":"https://api.github.com/users/ignaciovillaverde/gists{/gist_id}","starred_url":"https://api.github.com/users/ignaciovillaverde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignaciovillaverde/subscriptions","organizations_url":"https://api.github.com/users/ignaciovillaverde/orgs","repos_url":"https://api.github.com/users/ignaciovillaverde/repos","events_url":"https://api.github.com/users/ignaciovillaverde/events{/privacy}","received_events_url":"https://api.github.com/users/ignaciovillaverde/received_events","type":"User","site_admin":false},"body":"The same as in the other cases.","created_at":"2016-06-27T18:32:19Z","updated_at":"2016-06-27T18:32:19Z","html_url":"https://github.com/moove-it/ruy/pull/57#discussion_r68630794","pull_request_url":"https://api.github.com/repos/moove-it/ruy/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/moove-it/ruy/pulls/comments/68630794"},"html":{"href":"https://github.com/moove-it/ruy/pull/57#discussion_r68630794"},"pull_request":{"href":"https://api.github.com/repos/moove-it/ruy/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/moove-it/ruy/pulls/57","id":75191189,"html_url":"https://github.com/moove-it/ruy/pull/57","diff_url":"https://github.com/moove-it/ruy/pull/57.diff","patch_url":"https://github.com/moove-it/ruy/pull/57.patch","issue_url":"https://api.github.com/repos/moove-it/ruy/issues/57","number":57,"state":"open","locked":false,"title":"Implement #evaluate in every condition","user":{"login":"migl","id":1220142,"avatar_url":"https://avatars.githubusercontent.com/u/1220142?v=3","gravatar_id":"","url":"https://api.github.com/users/migl","html_url":"https://github.com/migl","followers_url":"https://api.github.com/users/migl/followers","following_url":"https://api.github.com/users/migl/following{/other_user}","gists_url":"https://api.github.com/users/migl/gists{/gist_id}","starred_url":"https://api.github.com/users/migl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migl/subscriptions","organizations_url":"https://api.github.com/users/migl/orgs","repos_url":"https://api.github.com/users/migl/repos","events_url":"https://api.github.com/users/migl/events{/privacy}","received_events_url":"https://api.github.com/users/migl/received_events","type":"User","site_admin":false},"body":"* Add documentation and make it consistent across classes","created_at":"2016-06-25T01:03:00Z","updated_at":"2016-06-27T18:32:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9365ef7a25a07bffe137653b4969db9033112240","assignee":{"login":"snmgian","id":73134,"avatar_url":"https://avatars.githubusercontent.com/u/73134?v=3","gravatar_id":"","url":"https://api.github.com/users/snmgian","html_url":"https://github.com/snmgian","followers_url":"https://api.github.com/users/snmgian/followers","following_url":"https://api.github.com/users/snmgian/following{/other_user}","gists_url":"https://api.github.com/users/snmgian/gists{/gist_id}","starred_url":"https://api.github.com/users/snmgian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snmgian/subscriptions","organizations_url":"https://api.github.com/users/snmgian/orgs","repos_url":"https://api.github.com/users/snmgian/repos","events_url":"https://api.github.com/users/snmgian/events{/privacy}","received_events_url":"https://api.github.com/users/snmgian/received_events","type":"User","site_admin":false},"assignees":[{"login":"snmgian","id":73134,"avatar_url":"https://avatars.githubusercontent.com/u/73134?v=3","gravatar_id":"","url":"https://api.github.com/users/snmgian","html_url":"https://github.com/snmgian","followers_url":"https://api.github.com/users/snmgian/followers","following_url":"https://api.github.com/users/snmgian/following{/other_user}","gists_url":"https://api.github.com/users/snmgian/gists{/gist_id}","starred_url":"https://api.github.com/users/snmgian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snmgian/subscriptions","organizations_url":"https://api.github.com/users/snmgian/orgs","repos_url":"https://api.github.com/users/snmgian/repos","events_url":"https://api.github.com/users/snmgian/events{/privacy}","received_events_url":"https://api.github.com/users/snmgian/received_events","type":"User","site_admin":false},{"login":"ignaciovillaverde","id":5333473,"avatar_url":"https://avatars.githubusercontent.com/u/5333473?v=3","gravatar_id":"","url":"https://api.github.com/users/ignaciovillaverde","html_url":"https://github.com/ignaciovillaverde","followers_url":"https://api.github.com/users/ignaciovillaverde/followers","following_url":"https://api.github.com/users/ignaciovillaverde/following{/other_user}","gists_url":"https://api.github.com/users/ignaciovillaverde/gists{/gist_id}","starred_url":"https://api.github.com/users/ignaciovillaverde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignaciovillaverde/subscriptions","organizations_url":"https://api.github.com/users/ignaciovillaverde/orgs","repos_url":"https://api.github.com/users/ignaciovillaverde/repos","events_url":"https://api.github.com/users/ignaciovillaverde/events{/privacy}","received_events_url":"https://api.github.com/users/ignaciovillaverde/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/moove-it/ruy/pulls/57/commits","review_comments_url":"https://api.github.com/repos/moove-it/ruy/pulls/57/comments","review_comment_url":"https://api.github.com/repos/moove-it/ruy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moove-it/ruy/issues/57/comments","statuses_url":"https://api.github.com/repos/moove-it/ruy/statuses/8ab3fa3aeb37329f2c37027d372e87c4002d17a5","head":{"label":"moove-it:call-refactor","ref":"call-refactor","sha":"8ab3fa3aeb37329f2c37027d372e87c4002d17a5","user":{"login":"moove-it","id":488520,"avatar_url":"https://avatars.githubusercontent.com/u/488520?v=3","gravatar_id":"","url":"https://api.github.com/users/moove-it","html_url":"https://github.com/moove-it","followers_url":"https://api.github.com/users/moove-it/followers","following_url":"https://api.github.com/users/moove-it/following{/other_user}","gists_url":"https://api.github.com/users/moove-it/gists{/gist_id}","starred_url":"https://api.github.com/users/moove-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moove-it/subscriptions","organizations_url":"https://api.github.com/users/moove-it/orgs","repos_url":"https://api.github.com/users/moove-it/repos","events_url":"https://api.github.com/users/moove-it/events{/privacy}","received_events_url":"https://api.github.com/users/moove-it/received_events","type":"Organization","site_admin":false},"repo":{"id":22112066,"name":"ruy","full_name":"moove-it/ruy","owner":{"login":"moove-it","id":488520,"avatar_url":"https://avatars.githubusercontent.com/u/488520?v=3","gravatar_id":"","url":"https://api.github.com/users/moove-it","html_url":"https://github.com/moove-it","followers_url":"https://api.github.com/users/moove-it/followers","following_url":"https://api.github.com/users/moove-it/following{/other_user}","gists_url":"https://api.github.com/users/moove-it/gists{/gist_id}","starred_url":"https://api.github.com/users/moove-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moove-it/subscriptions","organizations_url":"https://api.github.com/users/moove-it/orgs","repos_url":"https://api.github.com/users/moove-it/repos","events_url":"https://api.github.com/users/moove-it/events{/privacy}","received_events_url":"https://api.github.com/users/moove-it/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moove-it/ruy","description":"Lightweight rules evaluator","fork":false,"url":"https://api.github.com/repos/moove-it/ruy","forks_url":"https://api.github.com/repos/moove-it/ruy/forks","keys_url":"https://api.github.com/repos/moove-it/ruy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moove-it/ruy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moove-it/ruy/teams","hooks_url":"https://api.github.com/repos/moove-it/ruy/hooks","issue_events_url":"https://api.github.com/repos/moove-it/ruy/issues/events{/number}","events_url":"https://api.github.com/repos/moove-it/ruy/events","assignees_url":"https://api.github.com/repos/moove-it/ruy/assignees{/user}","branches_url":"https://api.github.com/repos/moove-it/ruy/branches{/branch}","tags_url":"https://api.github.com/repos/moove-it/ruy/tags","blobs_url":"https://api.github.com/repos/moove-it/ruy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moove-it/ruy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moove-it/ruy/git/refs{/sha}","trees_url":"https://api.github.com/repos/moove-it/ruy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moove-it/ruy/statuses/{sha}","languages_url":"https://api.github.com/repos/moove-it/ruy/languages","stargazers_url":"https://api.github.com/repos/moove-it/ruy/stargazers","contributors_url":"https://api.github.com/repos/moove-it/ruy/contributors","subscribers_url":"https://api.github.com/repos/moove-it/ruy/subscribers","subscription_url":"https://api.github.com/repos/moove-it/ruy/subscription","commits_url":"https://api.github.com/repos/moove-it/ruy/commits{/sha}","git_commits_url":"https://api.github.com/repos/moove-it/ruy/git/commits{/sha}","comments_url":"https://api.github.com/repos/moove-it/ruy/comments{/number}","issue_comment_url":"https://api.github.com/repos/moove-it/ruy/issues/comments{/number}","contents_url":"https://api.github.com/repos/moove-it/ruy/contents/{+path}","compare_url":"https://api.github.com/repos/moove-it/ruy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moove-it/ruy/merges","archive_url":"https://api.github.com/repos/moove-it/ruy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moove-it/ruy/downloads","issues_url":"https://api.github.com/repos/moove-it/ruy/issues{/number}","pulls_url":"https://api.github.com/repos/moove-it/ruy/pulls{/number}","milestones_url":"https://api.github.com/repos/moove-it/ruy/milestones{/number}","notifications_url":"https://api.github.com/repos/moove-it/ruy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moove-it/ruy/labels{/name}","releases_url":"https://api.github.com/repos/moove-it/ruy/releases{/id}","deployments_url":"https://api.github.com/repos/moove-it/ruy/deployments","created_at":"2014-07-22T16:47:35Z","updated_at":"2016-04-15T23:55:12Z","pushed_at":"2016-06-25T01:03:00Z","git_url":"git://github.com/moove-it/ruy.git","ssh_url":"git@github.com:moove-it/ruy.git","clone_url":"https://github.com/moove-it/ruy.git","svn_url":"https://github.com/moove-it/ruy","homepage":"http://moove-it.github.io/ruy/","size":1051,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":10,"default_branch":"master"}},"base":{"label":"moove-it:master","ref":"master","sha":"7b92c70c120c329d253ae85e0773f7880be96e73","user":{"login":"moove-it","id":488520,"avatar_url":"https://avatars.githubusercontent.com/u/488520?v=3","gravatar_id":"","url":"https://api.github.com/users/moove-it","html_url":"https://github.com/moove-it","followers_url":"https://api.github.com/users/moove-it/followers","following_url":"https://api.github.com/users/moove-it/following{/other_user}","gists_url":"https://api.github.com/users/moove-it/gists{/gist_id}","starred_url":"https://api.github.com/users/moove-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moove-it/subscriptions","organizations_url":"https://api.github.com/users/moove-it/orgs","repos_url":"https://api.github.com/users/moove-it/repos","events_url":"https://api.github.com/users/moove-it/events{/privacy}","received_events_url":"https://api.github.com/users/moove-it/received_events","type":"Organization","site_admin":false},"repo":{"id":22112066,"name":"ruy","full_name":"moove-it/ruy","owner":{"login":"moove-it","id":488520,"avatar_url":"https://avatars.githubusercontent.com/u/488520?v=3","gravatar_id":"","url":"https://api.github.com/users/moove-it","html_url":"https://github.com/moove-it","followers_url":"https://api.github.com/users/moove-it/followers","following_url":"https://api.github.com/users/moove-it/following{/other_user}","gists_url":"https://api.github.com/users/moove-it/gists{/gist_id}","starred_url":"https://api.github.com/users/moove-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moove-it/subscriptions","organizations_url":"https://api.github.com/users/moove-it/orgs","repos_url":"https://api.github.com/users/moove-it/repos","events_url":"https://api.github.com/users/moove-it/events{/privacy}","received_events_url":"https://api.github.com/users/moove-it/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moove-it/ruy","description":"Lightweight rules evaluator","fork":false,"url":"https://api.github.com/repos/moove-it/ruy","forks_url":"https://api.github.com/repos/moove-it/ruy/forks","keys_url":"https://api.github.com/repos/moove-it/ruy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moove-it/ruy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moove-it/ruy/teams","hooks_url":"https://api.github.com/repos/moove-it/ruy/hooks","issue_events_url":"https://api.github.com/repos/moove-it/ruy/issues/events{/number}","events_url":"https://api.github.com/repos/moove-it/ruy/events","assignees_url":"https://api.github.com/repos/moove-it/ruy/assignees{/user}","branches_url":"https://api.github.com/repos/moove-it/ruy/branches{/branch}","tags_url":"https://api.github.com/repos/moove-it/ruy/tags","blobs_url":"https://api.github.com/repos/moove-it/ruy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moove-it/ruy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moove-it/ruy/git/refs{/sha}","trees_url":"https://api.github.com/repos/moove-it/ruy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moove-it/ruy/statuses/{sha}","languages_url":"https://api.github.com/repos/moove-it/ruy/languages","stargazers_url":"https://api.github.com/repos/moove-it/ruy/stargazers","contributors_url":"https://api.github.com/repos/moove-it/ruy/contributors","subscribers_url":"https://api.github.com/repos/moove-it/ruy/subscribers","subscription_url":"https://api.github.com/repos/moove-it/ruy/subscription","commits_url":"https://api.github.com/repos/moove-it/ruy/commits{/sha}","git_commits_url":"https://api.github.com/repos/moove-it/ruy/git/commits{/sha}","comments_url":"https://api.github.com/repos/moove-it/ruy/comments{/number}","issue_comment_url":"https://api.github.com/repos/moove-it/ruy/issues/comments{/number}","contents_url":"https://api.github.com/repos/moove-it/ruy/contents/{+path}","compare_url":"https://api.github.com/repos/moove-it/ruy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moove-it/ruy/merges","archive_url":"https://api.github.com/repos/moove-it/ruy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moove-it/ruy/downloads","issues_url":"https://api.github.com/repos/moove-it/ruy/issues{/number}","pulls_url":"https://api.github.com/repos/moove-it/ruy/pulls{/number}","milestones_url":"https://api.github.com/repos/moove-it/ruy/milestones{/number}","notifications_url":"https://api.github.com/repos/moove-it/ruy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moove-it/ruy/labels{/name}","releases_url":"https://api.github.com/repos/moove-it/ruy/releases{/id}","deployments_url":"https://api.github.com/repos/moove-it/ruy/deployments","created_at":"2014-07-22T16:47:35Z","updated_at":"2016-04-15T23:55:12Z","pushed_at":"2016-06-25T01:03:00Z","git_url":"git://github.com/moove-it/ruy.git","ssh_url":"git@github.com:moove-it/ruy.git","clone_url":"https://github.com/moove-it/ruy.git","svn_url":"https://github.com/moove-it/ruy","homepage":"http://moove-it.github.io/ruy/","size":1051,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moove-it/ruy/pulls/57"},"html":{"href":"https://github.com/moove-it/ruy/pull/57"},"issue":{"href":"https://api.github.com/repos/moove-it/ruy/issues/57"},"comments":{"href":"https://api.github.com/repos/moove-it/ruy/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/moove-it/ruy/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/moove-it/ruy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moove-it/ruy/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/moove-it/ruy/statuses/8ab3fa3aeb37329f2c37027d372e87c4002d17a5"}}}}
{"actor":{"display_login":"ignaciovillaverde"}}