{"action":"created","comment":{"url":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/comments/77765627","id":77765627,"diff_hunk":"@@ -1,30 +1,34 @@\n # To make a empty square\n class Square\n+  SYMBOL = '#'\n   def initialize(side)\n     @side = side\n-    @gap_length = side - 2\n   end\n \n+  def generate\n+    print_first_last_line\n+\n+    return if @side < 2\n+    print_middle_lines\n+    print_first_last_line\n+  end\n+\n+  private\n+\n   def print_first_last_line\n-    @side.times { print '#' }\n+    print SYMBOL * @side\n     print \"\\n\"\n   end\n \n   def print_middle_lines\n-    @gap_length.times { puts '#' + ' ' * @gap_length + '#' }\n-  end\n-\n-  def generate\n-    print_first_last_line\n-\n-    return if @side < 2\n-        print_middle_lines\n-        print_first_last_line\n+    @gap_length = @side - 2\n+    @gap_length.times { puts SYMBOL + ' ' * @gap_length + SYMBOL }\n   end\n end\n \n-print 'Enter the side length:'\n+print 'side_length:'","path":"01-lets_get_started/01.rb","position":null,"original_position":41,"commit_id":"85cb0bca6facfd7f1a2706ef16b4256c0eadaf6e","original_commit_id":"85cb0bca6facfd7f1a2706ef16b4256c0eadaf6e","user":{"login":"JikkuJose","id":227739,"avatar_url":"https://avatars.githubusercontent.com/u/227739?v=3","gravatar_id":"","url":"https://api.github.com/users/JikkuJose","html_url":"https://github.com/JikkuJose","followers_url":"https://api.github.com/users/JikkuJose/followers","following_url":"https://api.github.com/users/JikkuJose/following{/other_user}","gists_url":"https://api.github.com/users/JikkuJose/gists{/gist_id}","starred_url":"https://api.github.com/users/JikkuJose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JikkuJose/subscriptions","organizations_url":"https://api.github.com/users/JikkuJose/orgs","repos_url":"https://api.github.com/users/JikkuJose/repos","events_url":"https://api.github.com/users/JikkuJose/events{/privacy}","received_events_url":"https://api.github.com/users/JikkuJose/received_events","type":"User","site_admin":false},"body":"All printed messages should be standard English, thats simple & readable. \r\n\r\nConsider: `Side length: ` instead of `side_length`:","created_at":"2016-09-07T06:23:34Z","updated_at":"2016-09-07T06:23:34Z","html_url":"https://github.com/KeralaStartupMission/Square/pull/3#discussion_r77765627","pull_request_url":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/comments/77765627"},"html":{"href":"https://github.com/KeralaStartupMission/Square/pull/3#discussion_r77765627"},"pull_request":{"href":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/3","id":83395737,"html_url":"https://github.com/KeralaStartupMission/Square/pull/3","diff_url":"https://github.com/KeralaStartupMission/Square/pull/3.diff","patch_url":"https://github.com/KeralaStartupMission/Square/pull/3.patch","issue_url":"https://api.github.com/repos/KeralaStartupMission/Square/issues/3","number":3,"state":"open","locked":false,"title":"Nandusankar","user":{"login":"nandusankar","id":17585519,"avatar_url":"https://avatars.githubusercontent.com/u/17585519?v=3","gravatar_id":"","url":"https://api.github.com/users/nandusankar","html_url":"https://github.com/nandusankar","followers_url":"https://api.github.com/users/nandusankar/followers","following_url":"https://api.github.com/users/nandusankar/following{/other_user}","gists_url":"https://api.github.com/users/nandusankar/gists{/gist_id}","starred_url":"https://api.github.com/users/nandusankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandusankar/subscriptions","organizations_url":"https://api.github.com/users/nandusankar/orgs","repos_url":"https://api.github.com/users/nandusankar/repos","events_url":"https://api.github.com/users/nandusankar/events{/privacy}","received_events_url":"https://api.github.com/users/nandusankar/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-31T06:32:47Z","updated_at":"2016-09-07T06:23:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9fb98a5b53a15165e42d69fb34f2ffe5771bd85","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/3/commits","review_comments_url":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/3/comments","review_comment_url":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KeralaStartupMission/Square/issues/3/comments","statuses_url":"https://api.github.com/repos/KeralaStartupMission/Square/statuses/85cb0bca6facfd7f1a2706ef16b4256c0eadaf6e","head":{"label":"nandusankar:nandusankar","ref":"nandusankar","sha":"85cb0bca6facfd7f1a2706ef16b4256c0eadaf6e","user":{"login":"nandusankar","id":17585519,"avatar_url":"https://avatars.githubusercontent.com/u/17585519?v=3","gravatar_id":"","url":"https://api.github.com/users/nandusankar","html_url":"https://github.com/nandusankar","followers_url":"https://api.github.com/users/nandusankar/followers","following_url":"https://api.github.com/users/nandusankar/following{/other_user}","gists_url":"https://api.github.com/users/nandusankar/gists{/gist_id}","starred_url":"https://api.github.com/users/nandusankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandusankar/subscriptions","organizations_url":"https://api.github.com/users/nandusankar/orgs","repos_url":"https://api.github.com/users/nandusankar/repos","events_url":"https://api.github.com/users/nandusankar/events{/privacy}","received_events_url":"https://api.github.com/users/nandusankar/received_events","type":"User","site_admin":false},"repo":{"id":66929543,"name":"Square","full_name":"nandusankar/Square","owner":{"login":"nandusankar","id":17585519,"avatar_url":"https://avatars.githubusercontent.com/u/17585519?v=3","gravatar_id":"","url":"https://api.github.com/users/nandusankar","html_url":"https://github.com/nandusankar","followers_url":"https://api.github.com/users/nandusankar/followers","following_url":"https://api.github.com/users/nandusankar/following{/other_user}","gists_url":"https://api.github.com/users/nandusankar/gists{/gist_id}","starred_url":"https://api.github.com/users/nandusankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandusankar/subscriptions","organizations_url":"https://api.github.com/users/nandusankar/orgs","repos_url":"https://api.github.com/users/nandusankar/repos","events_url":"https://api.github.com/users/nandusankar/events{/privacy}","received_events_url":"https://api.github.com/users/nandusankar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nandusankar/Square","description":"Simple set of exercises to teach programming to beginners","fork":true,"url":"https://api.github.com/repos/nandusankar/Square","forks_url":"https://api.github.com/repos/nandusankar/Square/forks","keys_url":"https://api.github.com/repos/nandusankar/Square/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nandusankar/Square/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nandusankar/Square/teams","hooks_url":"https://api.github.com/repos/nandusankar/Square/hooks","issue_events_url":"https://api.github.com/repos/nandusankar/Square/issues/events{/number}","events_url":"https://api.github.com/repos/nandusankar/Square/events","assignees_url":"https://api.github.com/repos/nandusankar/Square/assignees{/user}","branches_url":"https://api.github.com/repos/nandusankar/Square/branches{/branch}","tags_url":"https://api.github.com/repos/nandusankar/Square/tags","blobs_url":"https://api.github.com/repos/nandusankar/Square/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nandusankar/Square/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nandusankar/Square/git/refs{/sha}","trees_url":"https://api.github.com/repos/nandusankar/Square/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nandusankar/Square/statuses/{sha}","languages_url":"https://api.github.com/repos/nandusankar/Square/languages","stargazers_url":"https://api.github.com/repos/nandusankar/Square/stargazers","contributors_url":"https://api.github.com/repos/nandusankar/Square/contributors","subscribers_url":"https://api.github.com/repos/nandusankar/Square/subscribers","subscription_url":"https://api.github.com/repos/nandusankar/Square/subscription","commits_url":"https://api.github.com/repos/nandusankar/Square/commits{/sha}","git_commits_url":"https://api.github.com/repos/nandusankar/Square/git/commits{/sha}","comments_url":"https://api.github.com/repos/nandusankar/Square/comments{/number}","issue_comment_url":"https://api.github.com/repos/nandusankar/Square/issues/comments{/number}","contents_url":"https://api.github.com/repos/nandusankar/Square/contents/{+path}","compare_url":"https://api.github.com/repos/nandusankar/Square/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nandusankar/Square/merges","archive_url":"https://api.github.com/repos/nandusankar/Square/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nandusankar/Square/downloads","issues_url":"https://api.github.com/repos/nandusankar/Square/issues{/number}","pulls_url":"https://api.github.com/repos/nandusankar/Square/pulls{/number}","milestones_url":"https://api.github.com/repos/nandusankar/Square/milestones{/number}","notifications_url":"https://api.github.com/repos/nandusankar/Square/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nandusankar/Square/labels{/name}","releases_url":"https://api.github.com/repos/nandusankar/Square/releases{/id}","deployments_url":"https://api.github.com/repos/nandusankar/Square/deployments","created_at":"2016-08-30T10:06:36Z","updated_at":"2016-08-30T08:33:31Z","pushed_at":"2016-09-05T18:08:10Z","git_url":"git://github.com/nandusankar/Square.git","ssh_url":"git@github.com:nandusankar/Square.git","clone_url":"https://github.com/nandusankar/Square.git","svn_url":"https://github.com/nandusankar/Square","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"KeralaStartupMission:nandusankar","ref":"nandusankar","sha":"d9d6968964dda3a9844a0850d44debf74938f96d","user":{"login":"KeralaStartupMission","id":15690780,"avatar_url":"https://avatars.githubusercontent.com/u/15690780?v=3","gravatar_id":"","url":"https://api.github.com/users/KeralaStartupMission","html_url":"https://github.com/KeralaStartupMission","followers_url":"https://api.github.com/users/KeralaStartupMission/followers","following_url":"https://api.github.com/users/KeralaStartupMission/following{/other_user}","gists_url":"https://api.github.com/users/KeralaStartupMission/gists{/gist_id}","starred_url":"https://api.github.com/users/KeralaStartupMission/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeralaStartupMission/subscriptions","organizations_url":"https://api.github.com/users/KeralaStartupMission/orgs","repos_url":"https://api.github.com/users/KeralaStartupMission/repos","events_url":"https://api.github.com/users/KeralaStartupMission/events{/privacy}","received_events_url":"https://api.github.com/users/KeralaStartupMission/received_events","type":"Organization","site_admin":false},"repo":{"id":66922119,"name":"Square","full_name":"KeralaStartupMission/Square","owner":{"login":"KeralaStartupMission","id":15690780,"avatar_url":"https://avatars.githubusercontent.com/u/15690780?v=3","gravatar_id":"","url":"https://api.github.com/users/KeralaStartupMission","html_url":"https://github.com/KeralaStartupMission","followers_url":"https://api.github.com/users/KeralaStartupMission/followers","following_url":"https://api.github.com/users/KeralaStartupMission/following{/other_user}","gists_url":"https://api.github.com/users/KeralaStartupMission/gists{/gist_id}","starred_url":"https://api.github.com/users/KeralaStartupMission/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeralaStartupMission/subscriptions","organizations_url":"https://api.github.com/users/KeralaStartupMission/orgs","repos_url":"https://api.github.com/users/KeralaStartupMission/repos","events_url":"https://api.github.com/users/KeralaStartupMission/events{/privacy}","received_events_url":"https://api.github.com/users/KeralaStartupMission/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KeralaStartupMission/Square","description":"Simple set of exercises to teach programming to beginners","fork":false,"url":"https://api.github.com/repos/KeralaStartupMission/Square","forks_url":"https://api.github.com/repos/KeralaStartupMission/Square/forks","keys_url":"https://api.github.com/repos/KeralaStartupMission/Square/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KeralaStartupMission/Square/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KeralaStartupMission/Square/teams","hooks_url":"https://api.github.com/repos/KeralaStartupMission/Square/hooks","issue_events_url":"https://api.github.com/repos/KeralaStartupMission/Square/issues/events{/number}","events_url":"https://api.github.com/repos/KeralaStartupMission/Square/events","assignees_url":"https://api.github.com/repos/KeralaStartupMission/Square/assignees{/user}","branches_url":"https://api.github.com/repos/KeralaStartupMission/Square/branches{/branch}","tags_url":"https://api.github.com/repos/KeralaStartupMission/Square/tags","blobs_url":"https://api.github.com/repos/KeralaStartupMission/Square/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KeralaStartupMission/Square/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KeralaStartupMission/Square/git/refs{/sha}","trees_url":"https://api.github.com/repos/KeralaStartupMission/Square/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KeralaStartupMission/Square/statuses/{sha}","languages_url":"https://api.github.com/repos/KeralaStartupMission/Square/languages","stargazers_url":"https://api.github.com/repos/KeralaStartupMission/Square/stargazers","contributors_url":"https://api.github.com/repos/KeralaStartupMission/Square/contributors","subscribers_url":"https://api.github.com/repos/KeralaStartupMission/Square/subscribers","subscription_url":"https://api.github.com/repos/KeralaStartupMission/Square/subscription","commits_url":"https://api.github.com/repos/KeralaStartupMission/Square/commits{/sha}","git_commits_url":"https://api.github.com/repos/KeralaStartupMission/Square/git/commits{/sha}","comments_url":"https://api.github.com/repos/KeralaStartupMission/Square/comments{/number}","issue_comment_url":"https://api.github.com/repos/KeralaStartupMission/Square/issues/comments{/number}","contents_url":"https://api.github.com/repos/KeralaStartupMission/Square/contents/{+path}","compare_url":"https://api.github.com/repos/KeralaStartupMission/Square/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KeralaStartupMission/Square/merges","archive_url":"https://api.github.com/repos/KeralaStartupMission/Square/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KeralaStartupMission/Square/downloads","issues_url":"https://api.github.com/repos/KeralaStartupMission/Square/issues{/number}","pulls_url":"https://api.github.com/repos/KeralaStartupMission/Square/pulls{/number}","milestones_url":"https://api.github.com/repos/KeralaStartupMission/Square/milestones{/number}","notifications_url":"https://api.github.com/repos/KeralaStartupMission/Square/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KeralaStartupMission/Square/labels{/name}","releases_url":"https://api.github.com/repos/KeralaStartupMission/Square/releases{/id}","deployments_url":"https://api.github.com/repos/KeralaStartupMission/Square/deployments","created_at":"2016-08-30T08:33:31Z","updated_at":"2016-08-30T08:33:31Z","pushed_at":"2016-09-05T18:08:10Z","git_url":"git://github.com/KeralaStartupMission/Square.git","ssh_url":"git@github.com:KeralaStartupMission/Square.git","clone_url":"https://github.com/KeralaStartupMission/Square.git","svn_url":"https://github.com/KeralaStartupMission/Square","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/3"},"html":{"href":"https://github.com/KeralaStartupMission/Square/pull/3"},"issue":{"href":"https://api.github.com/repos/KeralaStartupMission/Square/issues/3"},"comments":{"href":"https://api.github.com/repos/KeralaStartupMission/Square/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KeralaStartupMission/Square/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/KeralaStartupMission/Square/statuses/85cb0bca6facfd7f1a2706ef16b4256c0eadaf6e"}}}}
{"actor":{"display_login":"JikkuJose"}}