{"action":"created","comment":{"url":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/comments/174855700","pull_request_review_id":104290125,"id":174855700,"diff_hunk":"@@ -0,0 +1,42 @@\n+require \"./Personaggi/Personaggio.rb\"\n+\n+module Personaggi\n+  class Factory_Personaggi\n+\n+    def self.newPg(classe, *arg)\n+      raise ArgumentError, \"Too many arguments in newPg function\" if arg.length > 6\n+      begin\n+        return send(classe, arg)\n+      rescue NoMethodError\n+        puts \"classe non presente\"\n+      end\n+    end\n+\n+    def self.newPgs(classe, numero)\n+      tank = []\n+      (0...numero).each{|x| tank[x]=newPg(classe)}\n+      return tank\n+    end\n+\n+    def self.guerriero(arg)","path":"Personaggi/Factory_Personaggi.rb","position":21,"original_position":21,"commit_id":"8c733871ac60ff9f20796afb6449a689d612b017","original_commit_id":"8c733871ac60ff9f20796afb6449a689d612b017","user":{"login":"matteocellucci","id":2451232,"avatar_url":"https://avatars2.githubusercontent.com/u/2451232?v=4","gravatar_id":"","url":"https://api.github.com/users/matteocellucci","html_url":"https://github.com/matteocellucci","followers_url":"https://api.github.com/users/matteocellucci/followers","following_url":"https://api.github.com/users/matteocellucci/following{/other_user}","gists_url":"https://api.github.com/users/matteocellucci/gists{/gist_id}","starred_url":"https://api.github.com/users/matteocellucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteocellucci/subscriptions","organizations_url":"https://api.github.com/users/matteocellucci/orgs","repos_url":"https://api.github.com/users/matteocellucci/repos","events_url":"https://api.github.com/users/matteocellucci/events{/privacy}","received_events_url":"https://api.github.com/users/matteocellucci/received_events","type":"User","site_admin":false},"body":"Improve `self.<nome>`","created_at":"2018-03-15T16:56:03Z","updated_at":"2018-03-15T17:02:02Z","html_url":"https://github.com/matteocellucci/rpg-simulator/pull/2#discussion_r174855700","pull_request_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/comments/174855700"},"html":{"href":"https://github.com/matteocellucci/rpg-simulator/pull/2#discussion_r174855700"},"pull_request":{"href":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/2","id":175309156,"html_url":"https://github.com/matteocellucci/rpg-simulator/pull/2","diff_url":"https://github.com/matteocellucci/rpg-simulator/pull/2.diff","patch_url":"https://github.com/matteocellucci/rpg-simulator/pull/2.patch","issue_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/issues/2","number":2,"state":"open","locked":false,"title":"creata la factory per inizializzare 1 o n personaggi","user":{"login":"Andreaorfino","id":37373820,"avatar_url":"https://avatars2.githubusercontent.com/u/37373820?v=4","gravatar_id":"","url":"https://api.github.com/users/Andreaorfino","html_url":"https://github.com/Andreaorfino","followers_url":"https://api.github.com/users/Andreaorfino/followers","following_url":"https://api.github.com/users/Andreaorfino/following{/other_user}","gists_url":"https://api.github.com/users/Andreaorfino/gists{/gist_id}","starred_url":"https://api.github.com/users/Andreaorfino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andreaorfino/subscriptions","organizations_url":"https://api.github.com/users/Andreaorfino/orgs","repos_url":"https://api.github.com/users/Andreaorfino/repos","events_url":"https://api.github.com/users/Andreaorfino/events{/privacy}","received_events_url":"https://api.github.com/users/Andreaorfino/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-15T16:34:49Z","updated_at":"2018-03-15T17:02:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e9305a54683936a16dde0ba1ad7058ff776bf2b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/2/commits","review_comments_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/2/comments","review_comment_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/issues/2/comments","statuses_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/statuses/8c733871ac60ff9f20796afb6449a689d612b017","head":{"label":"matteocellucci:factory","ref":"factory","sha":"8c733871ac60ff9f20796afb6449a689d612b017","user":{"login":"matteocellucci","id":2451232,"avatar_url":"https://avatars2.githubusercontent.com/u/2451232?v=4","gravatar_id":"","url":"https://api.github.com/users/matteocellucci","html_url":"https://github.com/matteocellucci","followers_url":"https://api.github.com/users/matteocellucci/followers","following_url":"https://api.github.com/users/matteocellucci/following{/other_user}","gists_url":"https://api.github.com/users/matteocellucci/gists{/gist_id}","starred_url":"https://api.github.com/users/matteocellucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteocellucci/subscriptions","organizations_url":"https://api.github.com/users/matteocellucci/orgs","repos_url":"https://api.github.com/users/matteocellucci/repos","events_url":"https://api.github.com/users/matteocellucci/events{/privacy}","received_events_url":"https://api.github.com/users/matteocellucci/received_events","type":"User","site_admin":false},"repo":{"id":125224962,"name":"rpg-simulator","full_name":"matteocellucci/rpg-simulator","owner":{"login":"matteocellucci","id":2451232,"avatar_url":"https://avatars2.githubusercontent.com/u/2451232?v=4","gravatar_id":"","url":"https://api.github.com/users/matteocellucci","html_url":"https://github.com/matteocellucci","followers_url":"https://api.github.com/users/matteocellucci/followers","following_url":"https://api.github.com/users/matteocellucci/following{/other_user}","gists_url":"https://api.github.com/users/matteocellucci/gists{/gist_id}","starred_url":"https://api.github.com/users/matteocellucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteocellucci/subscriptions","organizations_url":"https://api.github.com/users/matteocellucci/orgs","repos_url":"https://api.github.com/users/matteocellucci/repos","events_url":"https://api.github.com/users/matteocellucci/events{/privacy}","received_events_url":"https://api.github.com/users/matteocellucci/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matteocellucci/rpg-simulator","description":null,"fork":false,"url":"https://api.github.com/repos/matteocellucci/rpg-simulator","forks_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/forks","keys_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/teams","hooks_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/hooks","issue_events_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/issues/events{/number}","events_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/events","assignees_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/assignees{/user}","branches_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/branches{/branch}","tags_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/tags","blobs_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/git/refs{/sha}","trees_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/statuses/{sha}","languages_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/languages","stargazers_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/stargazers","contributors_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/contributors","subscribers_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/subscribers","subscription_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/subscription","commits_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/commits{/sha}","git_commits_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/git/commits{/sha}","comments_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/comments{/number}","issue_comment_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/issues/comments{/number}","contents_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/contents/{+path}","compare_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/merges","archive_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/downloads","issues_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/issues{/number}","pulls_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls{/number}","milestones_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/milestones{/number}","notifications_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/labels{/name}","releases_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/releases{/id}","deployments_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/deployments","created_at":"2018-03-14T14:23:59Z","updated_at":"2018-03-15T13:36:41Z","pushed_at":"2018-03-15T16:40:56Z","git_url":"git://github.com/matteocellucci/rpg-simulator.git","ssh_url":"git@github.com:matteocellucci/rpg-simulator.git","clone_url":"https://github.com/matteocellucci/rpg-simulator.git","svn_url":"https://github.com/matteocellucci/rpg-simulator","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"matteocellucci:master","ref":"master","sha":"dcc9e13d3f3246a84540946eb3054c114cf8c0fa","user":{"login":"matteocellucci","id":2451232,"avatar_url":"https://avatars2.githubusercontent.com/u/2451232?v=4","gravatar_id":"","url":"https://api.github.com/users/matteocellucci","html_url":"https://github.com/matteocellucci","followers_url":"https://api.github.com/users/matteocellucci/followers","following_url":"https://api.github.com/users/matteocellucci/following{/other_user}","gists_url":"https://api.github.com/users/matteocellucci/gists{/gist_id}","starred_url":"https://api.github.com/users/matteocellucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteocellucci/subscriptions","organizations_url":"https://api.github.com/users/matteocellucci/orgs","repos_url":"https://api.github.com/users/matteocellucci/repos","events_url":"https://api.github.com/users/matteocellucci/events{/privacy}","received_events_url":"https://api.github.com/users/matteocellucci/received_events","type":"User","site_admin":false},"repo":{"id":125224962,"name":"rpg-simulator","full_name":"matteocellucci/rpg-simulator","owner":{"login":"matteocellucci","id":2451232,"avatar_url":"https://avatars2.githubusercontent.com/u/2451232?v=4","gravatar_id":"","url":"https://api.github.com/users/matteocellucci","html_url":"https://github.com/matteocellucci","followers_url":"https://api.github.com/users/matteocellucci/followers","following_url":"https://api.github.com/users/matteocellucci/following{/other_user}","gists_url":"https://api.github.com/users/matteocellucci/gists{/gist_id}","starred_url":"https://api.github.com/users/matteocellucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteocellucci/subscriptions","organizations_url":"https://api.github.com/users/matteocellucci/orgs","repos_url":"https://api.github.com/users/matteocellucci/repos","events_url":"https://api.github.com/users/matteocellucci/events{/privacy}","received_events_url":"https://api.github.com/users/matteocellucci/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matteocellucci/rpg-simulator","description":null,"fork":false,"url":"https://api.github.com/repos/matteocellucci/rpg-simulator","forks_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/forks","keys_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/teams","hooks_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/hooks","issue_events_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/issues/events{/number}","events_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/events","assignees_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/assignees{/user}","branches_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/branches{/branch}","tags_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/tags","blobs_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/git/refs{/sha}","trees_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/statuses/{sha}","languages_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/languages","stargazers_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/stargazers","contributors_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/contributors","subscribers_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/subscribers","subscription_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/subscription","commits_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/commits{/sha}","git_commits_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/git/commits{/sha}","comments_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/comments{/number}","issue_comment_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/issues/comments{/number}","contents_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/contents/{+path}","compare_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/merges","archive_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/downloads","issues_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/issues{/number}","pulls_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls{/number}","milestones_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/milestones{/number}","notifications_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/labels{/name}","releases_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/releases{/id}","deployments_url":"https://api.github.com/repos/matteocellucci/rpg-simulator/deployments","created_at":"2018-03-14T14:23:59Z","updated_at":"2018-03-15T13:36:41Z","pushed_at":"2018-03-15T16:40:56Z","git_url":"git://github.com/matteocellucci/rpg-simulator.git","ssh_url":"git@github.com:matteocellucci/rpg-simulator.git","clone_url":"https://github.com/matteocellucci/rpg-simulator.git","svn_url":"https://github.com/matteocellucci/rpg-simulator","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/2"},"html":{"href":"https://github.com/matteocellucci/rpg-simulator/pull/2"},"issue":{"href":"https://api.github.com/repos/matteocellucci/rpg-simulator/issues/2"},"comments":{"href":"https://api.github.com/repos/matteocellucci/rpg-simulator/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matteocellucci/rpg-simulator/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/matteocellucci/rpg-simulator/statuses/8c733871ac60ff9f20796afb6449a689d612b017"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"matteocellucci"}}