{"action":"created","comment":{"url":"https://api.github.com/repos/kolisnyklera/factory/pulls/comments/203275617","pull_request_review_id":138124544,"id":203275617,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzI3NTYxNw==","diff_hunk":"@@ -0,0 +1,106 @@\n+class Factory\n+  include Enumerable\n+\n+  def self.new(*args, &block)\n+    Class.new do\n+      class_eval(&block) if block_given?\n+      send(:attr_accessor, *args)\n+\n+      define_method :initialize do |*values|\n+        raise ArgumentError, 'Error: Wrong amount of arguments' unless\n+        args.zip(values).each do |key, value|\n+          instance_variable_set(\"@#{key}\", value)\n+        end\n+      end\n+\n+        define_method :[] do |attribute|\n+          if attribute.is_a?(Numeric)\n+            instance_variable_get(\"@#{args[attribute]}\")\n+          else\n+            instance_variable_get(\"@#{attribute}\")\n+          end\n+        end\n+\n+        define_method :[]= do |attribute, value|\n+          if attribute.is_a?(Numeric)\n+            self.instance_variable_set(\"@#{args[attribute]}\", value)\n+          else\n+            self.instance_variable_set(\"@#{attribute}\", value)\n+          end\n+        end\n+\n+        define_method :== do |other|\n+          return false unless self.class == other.class\n+          args.each_index do |index|\n+            attr1 = instance_variable_get(\"@#{args[index]}\")\n+            attr2 = other[index]\n+            return false unless attr1 == attr2\n+          end\n+          true\n+        end\n+        alias :eql? :==\n+\n+        define_method :each do |&block|\n+          return self if block.class == NilClass\n+          args.each do |value|\n+            block.call(instance_variable_get(\"@#{value}\"))\n+          end\n+          self\n+        end\n+\n+        define_method :each_pair do |&block|\n+          args.each do |value|\n+            block.call(value, instance_variable_get(\"@#{value}\"))\n+          end\n+          self\n+        end\n+\n+        define_method :to_h do","path":"factory.rb","position":58,"original_position":58,"commit_id":"d90a40b2bed2ebc02d5697e91318c867fdcaefb4","original_commit_id":"d90a40b2bed2ebc02d5697e91318c867fdcaefb4","user":{"login":"VladLysiuk","id":15146125,"node_id":"MDQ6VXNlcjE1MTQ2MTI1","avatar_url":"https://avatars3.githubusercontent.com/u/15146125?v=4","gravatar_id":"","url":"https://api.github.com/users/VladLysiuk","html_url":"https://github.com/VladLysiuk","followers_url":"https://api.github.com/users/VladLysiuk/followers","following_url":"https://api.github.com/users/VladLysiuk/following{/other_user}","gists_url":"https://api.github.com/users/VladLysiuk/gists{/gist_id}","starred_url":"https://api.github.com/users/VladLysiuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladLysiuk/subscriptions","organizations_url":"https://api.github.com/users/VladLysiuk/orgs","repos_url":"https://api.github.com/users/VladLysiuk/repos","events_url":"https://api.github.com/users/VladLysiuk/events{/privacy}","received_events_url":"https://api.github.com/users/VladLysiuk/received_events","type":"User","site_admin":false},"body":"https://ruby-doc.org/core-2.5.1/Enumerable.html#method-i-to_h","created_at":"2018-07-18T07:27:14Z","updated_at":"2018-07-18T07:48:35Z","html_url":"https://github.com/kolisnyklera/factory/pull/1#discussion_r203275617","pull_request_url":"https://api.github.com/repos/kolisnyklera/factory/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/kolisnyklera/factory/pulls/comments/203275617"},"html":{"href":"https://github.com/kolisnyklera/factory/pull/1#discussion_r203275617"},"pull_request":{"href":"https://api.github.com/repos/kolisnyklera/factory/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/kolisnyklera/factory/pulls/1","id":189614556,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg5NjE0NTU2","html_url":"https://github.com/kolisnyklera/factory/pull/1","diff_url":"https://github.com/kolisnyklera/factory/pull/1.diff","patch_url":"https://github.com/kolisnyklera/factory/pull/1.patch","issue_url":"https://api.github.com/repos/kolisnyklera/factory/issues/1","number":1,"state":"open","locked":false,"title":"1.1","user":{"login":"kolisnyklera","id":36365736,"node_id":"MDQ6VXNlcjM2MzY1NzM2","avatar_url":"https://avatars2.githubusercontent.com/u/36365736?v=4","gravatar_id":"","url":"https://api.github.com/users/kolisnyklera","html_url":"https://github.com/kolisnyklera","followers_url":"https://api.github.com/users/kolisnyklera/followers","following_url":"https://api.github.com/users/kolisnyklera/following{/other_user}","gists_url":"https://api.github.com/users/kolisnyklera/gists{/gist_id}","starred_url":"https://api.github.com/users/kolisnyklera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolisnyklera/subscriptions","organizations_url":"https://api.github.com/users/kolisnyklera/orgs","repos_url":"https://api.github.com/users/kolisnyklera/repos","events_url":"https://api.github.com/users/kolisnyklera/events{/privacy}","received_events_url":"https://api.github.com/users/kolisnyklera/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-22T10:23:58Z","updated_at":"2018-07-18T07:48:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"018fb02be9af7a9255e7767c3a3754ea55c556ac","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kolisnyklera/factory/pulls/1/commits","review_comments_url":"https://api.github.com/repos/kolisnyklera/factory/pulls/1/comments","review_comment_url":"https://api.github.com/repos/kolisnyklera/factory/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kolisnyklera/factory/issues/1/comments","statuses_url":"https://api.github.com/repos/kolisnyklera/factory/statuses/d90a40b2bed2ebc02d5697e91318c867fdcaefb4","head":{"label":"kolisnyklera:feature/1","ref":"feature/1","sha":"d90a40b2bed2ebc02d5697e91318c867fdcaefb4","user":{"login":"kolisnyklera","id":36365736,"node_id":"MDQ6VXNlcjM2MzY1NzM2","avatar_url":"https://avatars2.githubusercontent.com/u/36365736?v=4","gravatar_id":"","url":"https://api.github.com/users/kolisnyklera","html_url":"https://github.com/kolisnyklera","followers_url":"https://api.github.com/users/kolisnyklera/followers","following_url":"https://api.github.com/users/kolisnyklera/following{/other_user}","gists_url":"https://api.github.com/users/kolisnyklera/gists{/gist_id}","starred_url":"https://api.github.com/users/kolisnyklera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolisnyklera/subscriptions","organizations_url":"https://api.github.com/users/kolisnyklera/orgs","repos_url":"https://api.github.com/users/kolisnyklera/repos","events_url":"https://api.github.com/users/kolisnyklera/events{/privacy}","received_events_url":"https://api.github.com/users/kolisnyklera/received_events","type":"User","site_admin":false},"repo":{"id":134398385,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQzOTgzODU=","name":"factory","full_name":"kolisnyklera/factory","owner":{"login":"kolisnyklera","id":36365736,"node_id":"MDQ6VXNlcjM2MzY1NzM2","avatar_url":"https://avatars2.githubusercontent.com/u/36365736?v=4","gravatar_id":"","url":"https://api.github.com/users/kolisnyklera","html_url":"https://github.com/kolisnyklera","followers_url":"https://api.github.com/users/kolisnyklera/followers","following_url":"https://api.github.com/users/kolisnyklera/following{/other_user}","gists_url":"https://api.github.com/users/kolisnyklera/gists{/gist_id}","starred_url":"https://api.github.com/users/kolisnyklera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolisnyklera/subscriptions","organizations_url":"https://api.github.com/users/kolisnyklera/orgs","repos_url":"https://api.github.com/users/kolisnyklera/repos","events_url":"https://api.github.com/users/kolisnyklera/events{/privacy}","received_events_url":"https://api.github.com/users/kolisnyklera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kolisnyklera/factory","description":null,"fork":false,"url":"https://api.github.com/repos/kolisnyklera/factory","forks_url":"https://api.github.com/repos/kolisnyklera/factory/forks","keys_url":"https://api.github.com/repos/kolisnyklera/factory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kolisnyklera/factory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kolisnyklera/factory/teams","hooks_url":"https://api.github.com/repos/kolisnyklera/factory/hooks","issue_events_url":"https://api.github.com/repos/kolisnyklera/factory/issues/events{/number}","events_url":"https://api.github.com/repos/kolisnyklera/factory/events","assignees_url":"https://api.github.com/repos/kolisnyklera/factory/assignees{/user}","branches_url":"https://api.github.com/repos/kolisnyklera/factory/branches{/branch}","tags_url":"https://api.github.com/repos/kolisnyklera/factory/tags","blobs_url":"https://api.github.com/repos/kolisnyklera/factory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kolisnyklera/factory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kolisnyklera/factory/git/refs{/sha}","trees_url":"https://api.github.com/repos/kolisnyklera/factory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kolisnyklera/factory/statuses/{sha}","languages_url":"https://api.github.com/repos/kolisnyklera/factory/languages","stargazers_url":"https://api.github.com/repos/kolisnyklera/factory/stargazers","contributors_url":"https://api.github.com/repos/kolisnyklera/factory/contributors","subscribers_url":"https://api.github.com/repos/kolisnyklera/factory/subscribers","subscription_url":"https://api.github.com/repos/kolisnyklera/factory/subscription","commits_url":"https://api.github.com/repos/kolisnyklera/factory/commits{/sha}","git_commits_url":"https://api.github.com/repos/kolisnyklera/factory/git/commits{/sha}","comments_url":"https://api.github.com/repos/kolisnyklera/factory/comments{/number}","issue_comment_url":"https://api.github.com/repos/kolisnyklera/factory/issues/comments{/number}","contents_url":"https://api.github.com/repos/kolisnyklera/factory/contents/{+path}","compare_url":"https://api.github.com/repos/kolisnyklera/factory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kolisnyklera/factory/merges","archive_url":"https://api.github.com/repos/kolisnyklera/factory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kolisnyklera/factory/downloads","issues_url":"https://api.github.com/repos/kolisnyklera/factory/issues{/number}","pulls_url":"https://api.github.com/repos/kolisnyklera/factory/pulls{/number}","milestones_url":"https://api.github.com/repos/kolisnyklera/factory/milestones{/number}","notifications_url":"https://api.github.com/repos/kolisnyklera/factory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kolisnyklera/factory/labels{/name}","releases_url":"https://api.github.com/repos/kolisnyklera/factory/releases{/id}","deployments_url":"https://api.github.com/repos/kolisnyklera/factory/deployments","created_at":"2018-05-22T10:21:15Z","updated_at":"2018-05-22T10:22:12Z","pushed_at":"2018-07-13T17:24:23Z","git_url":"git://github.com/kolisnyklera/factory.git","ssh_url":"git@github.com:kolisnyklera/factory.git","clone_url":"https://github.com/kolisnyklera/factory.git","svn_url":"https://github.com/kolisnyklera/factory","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"kolisnyklera:develop","ref":"develop","sha":"8274c0062f24ce88b71b3ba168c66d82cd1ba91d","user":{"login":"kolisnyklera","id":36365736,"node_id":"MDQ6VXNlcjM2MzY1NzM2","avatar_url":"https://avatars2.githubusercontent.com/u/36365736?v=4","gravatar_id":"","url":"https://api.github.com/users/kolisnyklera","html_url":"https://github.com/kolisnyklera","followers_url":"https://api.github.com/users/kolisnyklera/followers","following_url":"https://api.github.com/users/kolisnyklera/following{/other_user}","gists_url":"https://api.github.com/users/kolisnyklera/gists{/gist_id}","starred_url":"https://api.github.com/users/kolisnyklera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolisnyklera/subscriptions","organizations_url":"https://api.github.com/users/kolisnyklera/orgs","repos_url":"https://api.github.com/users/kolisnyklera/repos","events_url":"https://api.github.com/users/kolisnyklera/events{/privacy}","received_events_url":"https://api.github.com/users/kolisnyklera/received_events","type":"User","site_admin":false},"repo":{"id":134398385,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQzOTgzODU=","name":"factory","full_name":"kolisnyklera/factory","owner":{"login":"kolisnyklera","id":36365736,"node_id":"MDQ6VXNlcjM2MzY1NzM2","avatar_url":"https://avatars2.githubusercontent.com/u/36365736?v=4","gravatar_id":"","url":"https://api.github.com/users/kolisnyklera","html_url":"https://github.com/kolisnyklera","followers_url":"https://api.github.com/users/kolisnyklera/followers","following_url":"https://api.github.com/users/kolisnyklera/following{/other_user}","gists_url":"https://api.github.com/users/kolisnyklera/gists{/gist_id}","starred_url":"https://api.github.com/users/kolisnyklera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolisnyklera/subscriptions","organizations_url":"https://api.github.com/users/kolisnyklera/orgs","repos_url":"https://api.github.com/users/kolisnyklera/repos","events_url":"https://api.github.com/users/kolisnyklera/events{/privacy}","received_events_url":"https://api.github.com/users/kolisnyklera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kolisnyklera/factory","description":null,"fork":false,"url":"https://api.github.com/repos/kolisnyklera/factory","forks_url":"https://api.github.com/repos/kolisnyklera/factory/forks","keys_url":"https://api.github.com/repos/kolisnyklera/factory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kolisnyklera/factory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kolisnyklera/factory/teams","hooks_url":"https://api.github.com/repos/kolisnyklera/factory/hooks","issue_events_url":"https://api.github.com/repos/kolisnyklera/factory/issues/events{/number}","events_url":"https://api.github.com/repos/kolisnyklera/factory/events","assignees_url":"https://api.github.com/repos/kolisnyklera/factory/assignees{/user}","branches_url":"https://api.github.com/repos/kolisnyklera/factory/branches{/branch}","tags_url":"https://api.github.com/repos/kolisnyklera/factory/tags","blobs_url":"https://api.github.com/repos/kolisnyklera/factory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kolisnyklera/factory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kolisnyklera/factory/git/refs{/sha}","trees_url":"https://api.github.com/repos/kolisnyklera/factory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kolisnyklera/factory/statuses/{sha}","languages_url":"https://api.github.com/repos/kolisnyklera/factory/languages","stargazers_url":"https://api.github.com/repos/kolisnyklera/factory/stargazers","contributors_url":"https://api.github.com/repos/kolisnyklera/factory/contributors","subscribers_url":"https://api.github.com/repos/kolisnyklera/factory/subscribers","subscription_url":"https://api.github.com/repos/kolisnyklera/factory/subscription","commits_url":"https://api.github.com/repos/kolisnyklera/factory/commits{/sha}","git_commits_url":"https://api.github.com/repos/kolisnyklera/factory/git/commits{/sha}","comments_url":"https://api.github.com/repos/kolisnyklera/factory/comments{/number}","issue_comment_url":"https://api.github.com/repos/kolisnyklera/factory/issues/comments{/number}","contents_url":"https://api.github.com/repos/kolisnyklera/factory/contents/{+path}","compare_url":"https://api.github.com/repos/kolisnyklera/factory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kolisnyklera/factory/merges","archive_url":"https://api.github.com/repos/kolisnyklera/factory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kolisnyklera/factory/downloads","issues_url":"https://api.github.com/repos/kolisnyklera/factory/issues{/number}","pulls_url":"https://api.github.com/repos/kolisnyklera/factory/pulls{/number}","milestones_url":"https://api.github.com/repos/kolisnyklera/factory/milestones{/number}","notifications_url":"https://api.github.com/repos/kolisnyklera/factory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kolisnyklera/factory/labels{/name}","releases_url":"https://api.github.com/repos/kolisnyklera/factory/releases{/id}","deployments_url":"https://api.github.com/repos/kolisnyklera/factory/deployments","created_at":"2018-05-22T10:21:15Z","updated_at":"2018-05-22T10:22:12Z","pushed_at":"2018-07-13T17:24:23Z","git_url":"git://github.com/kolisnyklera/factory.git","ssh_url":"git@github.com:kolisnyklera/factory.git","clone_url":"https://github.com/kolisnyklera/factory.git","svn_url":"https://github.com/kolisnyklera/factory","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/kolisnyklera/factory/pulls/1"},"html":{"href":"https://github.com/kolisnyklera/factory/pull/1"},"issue":{"href":"https://api.github.com/repos/kolisnyklera/factory/issues/1"},"comments":{"href":"https://api.github.com/repos/kolisnyklera/factory/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/kolisnyklera/factory/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/kolisnyklera/factory/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kolisnyklera/factory/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/kolisnyklera/factory/statuses/d90a40b2bed2ebc02d5697e91318c867fdcaefb4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"VladLysiuk"}}