{"action":"created","comment":{"url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/comments/58960341","id":58960341,"diff_hunk":"@@ -0,0 +1,105 @@\n+class SchedulePresenter\n+\n+  def initialize(venue_object)\n+    @venue = venue_object\n+  end\n+\n+  #this is the method actually being called in the view.\n+  def shows_at_venue_per_day(week_day)\n+    shows_at_venue = Event.where(\"venue_id\" => @venue.id)\n+    @shows_at_venue_per_day = []\n+    @shows_with_open_time_slots = []\n+    shows_at_venue.each do |show|\n+      if show.weekday == week_day","path":"app/presenters/schedule_presenter.rb","position":13,"original_position":13,"commit_id":"917e1dfbc09e08f4c629ad75ad4adca36d431091","original_commit_id":"917e1dfbc09e08f4c629ad75ad4adca36d431091","user":{"login":"sumeetjain","id":29388,"avatar_url":"https://avatars.githubusercontent.com/u/29388?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeetjain","html_url":"https://github.com/sumeetjain","followers_url":"https://api.github.com/users/sumeetjain/followers","following_url":"https://api.github.com/users/sumeetjain/following{/other_user}","gists_url":"https://api.github.com/users/sumeetjain/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeetjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeetjain/subscriptions","organizations_url":"https://api.github.com/users/sumeetjain/orgs","repos_url":"https://api.github.com/users/sumeetjain/repos","events_url":"https://api.github.com/users/sumeetjain/events{/privacy}","received_events_url":"https://api.github.com/users/sumeetjain/received_events","type":"User","site_admin":false},"body":"Use a guard clause instead of wrapping the code inside a conditional expression.","created_at":"2016-04-07T23:12:49Z","updated_at":"2016-04-07T23:12:49Z","html_url":"https://github.com/omahacodeschool/lincoln-calling/pull/177#discussion_r58960341","pull_request_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/177","_links":{"self":{"href":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/comments/58960341"},"html":{"href":"https://github.com/omahacodeschool/lincoln-calling/pull/177#discussion_r58960341"},"pull_request":{"href":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/177"}}},"pull_request":{"url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/177","id":65537956,"html_url":"https://github.com/omahacodeschool/lincoln-calling/pull/177","diff_url":"https://github.com/omahacodeschool/lincoln-calling/pull/177.diff","patch_url":"https://github.com/omahacodeschool/lincoln-calling/pull/177.patch","issue_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/issues/177","number":177,"state":"open","locked":false,"title":"Blank spaces for no show timess","user":{"login":"mel-d","id":16277895,"avatar_url":"https://avatars.githubusercontent.com/u/16277895?v=3","gravatar_id":"","url":"https://api.github.com/users/mel-d","html_url":"https://github.com/mel-d","followers_url":"https://api.github.com/users/mel-d/followers","following_url":"https://api.github.com/users/mel-d/following{/other_user}","gists_url":"https://api.github.com/users/mel-d/gists{/gist_id}","starred_url":"https://api.github.com/users/mel-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mel-d/subscriptions","organizations_url":"https://api.github.com/users/mel-d/orgs","repos_url":"https://api.github.com/users/mel-d/repos","events_url":"https://api.github.com/users/mel-d/events{/privacy}","received_events_url":"https://api.github.com/users/mel-d/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-06T21:18:36Z","updated_at":"2016-04-07T23:12:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1764941ba38dc0cc07d82243f193cc04bad05f84","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/177/commits","review_comments_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/177/comments","review_comment_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/issues/177/comments","statuses_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/statuses/917e1dfbc09e08f4c629ad75ad4adca36d431091","head":{"label":"omahacodeschool:blank-spaces-for-no-show-timess","ref":"blank-spaces-for-no-show-timess","sha":"917e1dfbc09e08f4c629ad75ad4adca36d431091","user":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"repo":{"id":54342926,"name":"lincoln-calling","full_name":"omahacodeschool/lincoln-calling","owner":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omahacodeschool/lincoln-calling","description":null,"fork":false,"url":"https://api.github.com/repos/omahacodeschool/lincoln-calling","forks_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/forks","keys_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/teams","hooks_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/hooks","issue_events_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/issues/events{/number}","events_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/events","assignees_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/assignees{/user}","branches_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/branches{/branch}","tags_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/tags","blobs_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/git/refs{/sha}","trees_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/statuses/{sha}","languages_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/languages","stargazers_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/stargazers","contributors_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/contributors","subscribers_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/subscribers","subscription_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/subscription","commits_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/commits{/sha}","git_commits_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/git/commits{/sha}","comments_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/comments{/number}","issue_comment_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/issues/comments{/number}","contents_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/contents/{+path}","compare_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/merges","archive_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/downloads","issues_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/issues{/number}","pulls_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls{/number}","milestones_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/milestones{/number}","notifications_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/labels{/name}","releases_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/releases{/id}","deployments_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/deployments","created_at":"2016-03-20T22:03:55Z","updated_at":"2016-03-20T22:04:22Z","pushed_at":"2016-04-07T23:09:06Z","git_url":"git://github.com/omahacodeschool/lincoln-calling.git","ssh_url":"git@github.com:omahacodeschool/lincoln-calling.git","clone_url":"https://github.com/omahacodeschool/lincoln-calling.git","svn_url":"https://github.com/omahacodeschool/lincoln-calling","homepage":null,"size":7248,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":0,"default_branch":"master"}},"base":{"label":"omahacodeschool:master","ref":"master","sha":"a7820a95fd4258ce9a396366bdc1c75e1c1f46d2","user":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"repo":{"id":54342926,"name":"lincoln-calling","full_name":"omahacodeschool/lincoln-calling","owner":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omahacodeschool/lincoln-calling","description":null,"fork":false,"url":"https://api.github.com/repos/omahacodeschool/lincoln-calling","forks_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/forks","keys_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/teams","hooks_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/hooks","issue_events_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/issues/events{/number}","events_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/events","assignees_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/assignees{/user}","branches_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/branches{/branch}","tags_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/tags","blobs_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/git/refs{/sha}","trees_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/statuses/{sha}","languages_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/languages","stargazers_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/stargazers","contributors_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/contributors","subscribers_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/subscribers","subscription_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/subscription","commits_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/commits{/sha}","git_commits_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/git/commits{/sha}","comments_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/comments{/number}","issue_comment_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/issues/comments{/number}","contents_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/contents/{+path}","compare_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/merges","archive_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/downloads","issues_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/issues{/number}","pulls_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls{/number}","milestones_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/milestones{/number}","notifications_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/labels{/name}","releases_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/releases{/id}","deployments_url":"https://api.github.com/repos/omahacodeschool/lincoln-calling/deployments","created_at":"2016-03-20T22:03:55Z","updated_at":"2016-03-20T22:04:22Z","pushed_at":"2016-04-07T23:09:06Z","git_url":"git://github.com/omahacodeschool/lincoln-calling.git","ssh_url":"git@github.com:omahacodeschool/lincoln-calling.git","clone_url":"https://github.com/omahacodeschool/lincoln-calling.git","svn_url":"https://github.com/omahacodeschool/lincoln-calling","homepage":null,"size":7248,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/177"},"html":{"href":"https://github.com/omahacodeschool/lincoln-calling/pull/177"},"issue":{"href":"https://api.github.com/repos/omahacodeschool/lincoln-calling/issues/177"},"comments":{"href":"https://api.github.com/repos/omahacodeschool/lincoln-calling/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omahacodeschool/lincoln-calling/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/omahacodeschool/lincoln-calling/statuses/917e1dfbc09e08f4c629ad75ad4adca36d431091"}}}}