{"action":"created","comment":{"url":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/comments/181576662","pull_request_review_id":112231930,"id":181576662,"diff_hunk":"@@ -0,0 +1,12 @@\n+def square_of_sum (my_array, proc_square, proc_sum)\n+  sum = proc_sum.call(my_array)\n+  proc_square.call(sum)\n+end\n+\n+proc_square = Proc.new{|s| s *= s}\n+proc_sum = Proc.new {|my_array|\n+  my_array.inject{|s, num| s += num}","path":"hw_13042018/proc.rb","position":8,"original_position":8,"commit_id":"ffec179c3247f52f6cc0752699b7a322eee1dbef","original_commit_id":"ffec179c3247f52f6cc0752699b7a322eee1dbef","user":{"login":"at-nhantruong","id":19969406,"avatar_url":"https://avatars2.githubusercontent.com/u/19969406?v=4","gravatar_id":"","url":"https://api.github.com/users/at-nhantruong","html_url":"https://github.com/at-nhantruong","followers_url":"https://api.github.com/users/at-nhantruong/followers","following_url":"https://api.github.com/users/at-nhantruong/following{/other_user}","gists_url":"https://api.github.com/users/at-nhantruong/gists{/gist_id}","starred_url":"https://api.github.com/users/at-nhantruong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-nhantruong/subscriptions","organizations_url":"https://api.github.com/users/at-nhantruong/orgs","repos_url":"https://api.github.com/users/at-nhantruong/repos","events_url":"https://api.github.com/users/at-nhantruong/events{/privacy}","received_events_url":"https://api.github.com/users/at-nhantruong/received_events","type":"User","site_admin":false},"body":"Need a space after `{` and before `}`\r\n=> `my_array.inject { |s, num| s += num }`","created_at":"2018-04-15T09:49:58Z","updated_at":"2018-04-15T09:52:15Z","html_url":"https://github.com/at-laibui/RubyBasic/pull/4#discussion_r181576662","pull_request_url":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/comments/181576662"},"html":{"href":"https://github.com/at-laibui/RubyBasic/pull/4#discussion_r181576662"},"pull_request":{"href":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/4","id":181428528,"html_url":"https://github.com/at-laibui/RubyBasic/pull/4","diff_url":"https://github.com/at-laibui/RubyBasic/pull/4.diff","patch_url":"https://github.com/at-laibui/RubyBasic/pull/4.patch","issue_url":"https://api.github.com/repos/at-laibui/RubyBasic/issues/4","number":4,"state":"open","locked":false,"title":"finish exercise 12042018","user":{"login":"at-laibui","id":37993965,"avatar_url":"https://avatars3.githubusercontent.com/u/37993965?v=4","gravatar_id":"","url":"https://api.github.com/users/at-laibui","html_url":"https://github.com/at-laibui","followers_url":"https://api.github.com/users/at-laibui/followers","following_url":"https://api.github.com/users/at-laibui/following{/other_user}","gists_url":"https://api.github.com/users/at-laibui/gists{/gist_id}","starred_url":"https://api.github.com/users/at-laibui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-laibui/subscriptions","organizations_url":"https://api.github.com/users/at-laibui/orgs","repos_url":"https://api.github.com/users/at-laibui/repos","events_url":"https://api.github.com/users/at-laibui/events{/privacy}","received_events_url":"https://api.github.com/users/at-laibui/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-13T09:11:39Z","updated_at":"2018-04-15T09:52:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa1e7d839a6f0f9974f46247ab8d04b1bf5f98e7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/4/commits","review_comments_url":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/4/comments","review_comment_url":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/at-laibui/RubyBasic/issues/4/comments","statuses_url":"https://api.github.com/repos/at-laibui/RubyBasic/statuses/ffec179c3247f52f6cc0752699b7a322eee1dbef","head":{"label":"at-laibui:lai/12042018","ref":"lai/12042018","sha":"ffec179c3247f52f6cc0752699b7a322eee1dbef","user":{"login":"at-laibui","id":37993965,"avatar_url":"https://avatars3.githubusercontent.com/u/37993965?v=4","gravatar_id":"","url":"https://api.github.com/users/at-laibui","html_url":"https://github.com/at-laibui","followers_url":"https://api.github.com/users/at-laibui/followers","following_url":"https://api.github.com/users/at-laibui/following{/other_user}","gists_url":"https://api.github.com/users/at-laibui/gists{/gist_id}","starred_url":"https://api.github.com/users/at-laibui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-laibui/subscriptions","organizations_url":"https://api.github.com/users/at-laibui/orgs","repos_url":"https://api.github.com/users/at-laibui/repos","events_url":"https://api.github.com/users/at-laibui/events{/privacy}","received_events_url":"https://api.github.com/users/at-laibui/received_events","type":"User","site_admin":false},"repo":{"id":127884549,"name":"RubyBasic","full_name":"at-laibui/RubyBasic","owner":{"login":"at-laibui","id":37993965,"avatar_url":"https://avatars3.githubusercontent.com/u/37993965?v=4","gravatar_id":"","url":"https://api.github.com/users/at-laibui","html_url":"https://github.com/at-laibui","followers_url":"https://api.github.com/users/at-laibui/followers","following_url":"https://api.github.com/users/at-laibui/following{/other_user}","gists_url":"https://api.github.com/users/at-laibui/gists{/gist_id}","starred_url":"https://api.github.com/users/at-laibui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-laibui/subscriptions","organizations_url":"https://api.github.com/users/at-laibui/orgs","repos_url":"https://api.github.com/users/at-laibui/repos","events_url":"https://api.github.com/users/at-laibui/events{/privacy}","received_events_url":"https://api.github.com/users/at-laibui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/at-laibui/RubyBasic","description":null,"fork":false,"url":"https://api.github.com/repos/at-laibui/RubyBasic","forks_url":"https://api.github.com/repos/at-laibui/RubyBasic/forks","keys_url":"https://api.github.com/repos/at-laibui/RubyBasic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/at-laibui/RubyBasic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/at-laibui/RubyBasic/teams","hooks_url":"https://api.github.com/repos/at-laibui/RubyBasic/hooks","issue_events_url":"https://api.github.com/repos/at-laibui/RubyBasic/issues/events{/number}","events_url":"https://api.github.com/repos/at-laibui/RubyBasic/events","assignees_url":"https://api.github.com/repos/at-laibui/RubyBasic/assignees{/user}","branches_url":"https://api.github.com/repos/at-laibui/RubyBasic/branches{/branch}","tags_url":"https://api.github.com/repos/at-laibui/RubyBasic/tags","blobs_url":"https://api.github.com/repos/at-laibui/RubyBasic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/at-laibui/RubyBasic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/at-laibui/RubyBasic/git/refs{/sha}","trees_url":"https://api.github.com/repos/at-laibui/RubyBasic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/at-laibui/RubyBasic/statuses/{sha}","languages_url":"https://api.github.com/repos/at-laibui/RubyBasic/languages","stargazers_url":"https://api.github.com/repos/at-laibui/RubyBasic/stargazers","contributors_url":"https://api.github.com/repos/at-laibui/RubyBasic/contributors","subscribers_url":"https://api.github.com/repos/at-laibui/RubyBasic/subscribers","subscription_url":"https://api.github.com/repos/at-laibui/RubyBasic/subscription","commits_url":"https://api.github.com/repos/at-laibui/RubyBasic/commits{/sha}","git_commits_url":"https://api.github.com/repos/at-laibui/RubyBasic/git/commits{/sha}","comments_url":"https://api.github.com/repos/at-laibui/RubyBasic/comments{/number}","issue_comment_url":"https://api.github.com/repos/at-laibui/RubyBasic/issues/comments{/number}","contents_url":"https://api.github.com/repos/at-laibui/RubyBasic/contents/{+path}","compare_url":"https://api.github.com/repos/at-laibui/RubyBasic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/at-laibui/RubyBasic/merges","archive_url":"https://api.github.com/repos/at-laibui/RubyBasic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/at-laibui/RubyBasic/downloads","issues_url":"https://api.github.com/repos/at-laibui/RubyBasic/issues{/number}","pulls_url":"https://api.github.com/repos/at-laibui/RubyBasic/pulls{/number}","milestones_url":"https://api.github.com/repos/at-laibui/RubyBasic/milestones{/number}","notifications_url":"https://api.github.com/repos/at-laibui/RubyBasic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/at-laibui/RubyBasic/labels{/name}","releases_url":"https://api.github.com/repos/at-laibui/RubyBasic/releases{/id}","deployments_url":"https://api.github.com/repos/at-laibui/RubyBasic/deployments","created_at":"2018-04-03T09:31:09Z","updated_at":"2018-04-05T08:41:29Z","pushed_at":"2018-04-13T09:11:39Z","git_url":"git://github.com/at-laibui/RubyBasic.git","ssh_url":"git@github.com:at-laibui/RubyBasic.git","clone_url":"https://github.com/at-laibui/RubyBasic.git","svn_url":"https://github.com/at-laibui/RubyBasic","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"at-laibui:master","ref":"master","sha":"e60667c90012ff7824f4121bb6b9f50b073e7b21","user":{"login":"at-laibui","id":37993965,"avatar_url":"https://avatars3.githubusercontent.com/u/37993965?v=4","gravatar_id":"","url":"https://api.github.com/users/at-laibui","html_url":"https://github.com/at-laibui","followers_url":"https://api.github.com/users/at-laibui/followers","following_url":"https://api.github.com/users/at-laibui/following{/other_user}","gists_url":"https://api.github.com/users/at-laibui/gists{/gist_id}","starred_url":"https://api.github.com/users/at-laibui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-laibui/subscriptions","organizations_url":"https://api.github.com/users/at-laibui/orgs","repos_url":"https://api.github.com/users/at-laibui/repos","events_url":"https://api.github.com/users/at-laibui/events{/privacy}","received_events_url":"https://api.github.com/users/at-laibui/received_events","type":"User","site_admin":false},"repo":{"id":127884549,"name":"RubyBasic","full_name":"at-laibui/RubyBasic","owner":{"login":"at-laibui","id":37993965,"avatar_url":"https://avatars3.githubusercontent.com/u/37993965?v=4","gravatar_id":"","url":"https://api.github.com/users/at-laibui","html_url":"https://github.com/at-laibui","followers_url":"https://api.github.com/users/at-laibui/followers","following_url":"https://api.github.com/users/at-laibui/following{/other_user}","gists_url":"https://api.github.com/users/at-laibui/gists{/gist_id}","starred_url":"https://api.github.com/users/at-laibui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-laibui/subscriptions","organizations_url":"https://api.github.com/users/at-laibui/orgs","repos_url":"https://api.github.com/users/at-laibui/repos","events_url":"https://api.github.com/users/at-laibui/events{/privacy}","received_events_url":"https://api.github.com/users/at-laibui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/at-laibui/RubyBasic","description":null,"fork":false,"url":"https://api.github.com/repos/at-laibui/RubyBasic","forks_url":"https://api.github.com/repos/at-laibui/RubyBasic/forks","keys_url":"https://api.github.com/repos/at-laibui/RubyBasic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/at-laibui/RubyBasic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/at-laibui/RubyBasic/teams","hooks_url":"https://api.github.com/repos/at-laibui/RubyBasic/hooks","issue_events_url":"https://api.github.com/repos/at-laibui/RubyBasic/issues/events{/number}","events_url":"https://api.github.com/repos/at-laibui/RubyBasic/events","assignees_url":"https://api.github.com/repos/at-laibui/RubyBasic/assignees{/user}","branches_url":"https://api.github.com/repos/at-laibui/RubyBasic/branches{/branch}","tags_url":"https://api.github.com/repos/at-laibui/RubyBasic/tags","blobs_url":"https://api.github.com/repos/at-laibui/RubyBasic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/at-laibui/RubyBasic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/at-laibui/RubyBasic/git/refs{/sha}","trees_url":"https://api.github.com/repos/at-laibui/RubyBasic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/at-laibui/RubyBasic/statuses/{sha}","languages_url":"https://api.github.com/repos/at-laibui/RubyBasic/languages","stargazers_url":"https://api.github.com/repos/at-laibui/RubyBasic/stargazers","contributors_url":"https://api.github.com/repos/at-laibui/RubyBasic/contributors","subscribers_url":"https://api.github.com/repos/at-laibui/RubyBasic/subscribers","subscription_url":"https://api.github.com/repos/at-laibui/RubyBasic/subscription","commits_url":"https://api.github.com/repos/at-laibui/RubyBasic/commits{/sha}","git_commits_url":"https://api.github.com/repos/at-laibui/RubyBasic/git/commits{/sha}","comments_url":"https://api.github.com/repos/at-laibui/RubyBasic/comments{/number}","issue_comment_url":"https://api.github.com/repos/at-laibui/RubyBasic/issues/comments{/number}","contents_url":"https://api.github.com/repos/at-laibui/RubyBasic/contents/{+path}","compare_url":"https://api.github.com/repos/at-laibui/RubyBasic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/at-laibui/RubyBasic/merges","archive_url":"https://api.github.com/repos/at-laibui/RubyBasic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/at-laibui/RubyBasic/downloads","issues_url":"https://api.github.com/repos/at-laibui/RubyBasic/issues{/number}","pulls_url":"https://api.github.com/repos/at-laibui/RubyBasic/pulls{/number}","milestones_url":"https://api.github.com/repos/at-laibui/RubyBasic/milestones{/number}","notifications_url":"https://api.github.com/repos/at-laibui/RubyBasic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/at-laibui/RubyBasic/labels{/name}","releases_url":"https://api.github.com/repos/at-laibui/RubyBasic/releases{/id}","deployments_url":"https://api.github.com/repos/at-laibui/RubyBasic/deployments","created_at":"2018-04-03T09:31:09Z","updated_at":"2018-04-05T08:41:29Z","pushed_at":"2018-04-13T09:11:39Z","git_url":"git://github.com/at-laibui/RubyBasic.git","ssh_url":"git@github.com:at-laibui/RubyBasic.git","clone_url":"https://github.com/at-laibui/RubyBasic.git","svn_url":"https://github.com/at-laibui/RubyBasic","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/4"},"html":{"href":"https://github.com/at-laibui/RubyBasic/pull/4"},"issue":{"href":"https://api.github.com/repos/at-laibui/RubyBasic/issues/4"},"comments":{"href":"https://api.github.com/repos/at-laibui/RubyBasic/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/at-laibui/RubyBasic/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/at-laibui/RubyBasic/statuses/ffec179c3247f52f6cc0752699b7a322eee1dbef"}},"author_association":"OWNER"}}
{"actor":{"display_login":"at-nhantruong"}}