{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/comments/125187380","pull_request_review_id":47554163,"id":125187380,"diff_hunk":"@@ -0,0 +1,50 @@\n+require 'pry'\n+class CreditCardValidation\n+  card_number = \"4929735477250543\"\n+\n+  def initialize(card_number)\n+    @card_number = card_number\n+  end\n+\n+  def over_10\n+    double_odd.map do |n|\n+      if n > 9\n+        i.to_s.chars.each_slice(2).map do |x, y|\n+          x.to_i + y.to_i\n+        end\n+      else\n+        n\n+      end\n+\n+      def backward_card\n+        card_number.reverse_integer\n+      end\n+\n+      def reverse_integer\n+        backward_card.chars.map(&:to_i)\n+      end\n+\n+      def double_odd\n+        reverse_integer.map.index do|x, y|\n+          if y == odd\n+            x * 2\n+          else\n+            x\n+          end\n+        end\n+      end\n+\n+      def sum_final\n+        sum_greater_10.inject(:+)","path":"lib/cccheck.rb","position":38,"original_position":38,"commit_id":"8e7c8342e1080bae74662514d21840a313f6912d","original_commit_id":"8e7c8342e1080bae74662514d21840a313f6912d","user":{"login":"s-espinosa","id":10855116,"avatar_url":"https://avatars2.githubusercontent.com/u/10855116?v=3","gravatar_id":"","url":"https://api.github.com/users/s-espinosa","html_url":"https://github.com/s-espinosa","followers_url":"https://api.github.com/users/s-espinosa/followers","following_url":"https://api.github.com/users/s-espinosa/following{/other_user}","gists_url":"https://api.github.com/users/s-espinosa/gists{/gist_id}","starred_url":"https://api.github.com/users/s-espinosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-espinosa/subscriptions","organizations_url":"https://api.github.com/users/s-espinosa/orgs","repos_url":"https://api.github.com/users/s-espinosa/repos","events_url":"https://api.github.com/users/s-espinosa/events{/privacy}","received_events_url":"https://api.github.com/users/s-espinosa/received_events","type":"User","site_admin":false},"body":"`sum_greater_10` has not been defined anywhere. Looks like maybe you were reaching for `over_10`?","created_at":"2017-07-02T16:42:12Z","updated_at":"2017-07-02T16:45:33Z","html_url":"https://github.com/turingschool-examples/credit_check/pull/7#discussion_r125187380","pull_request_url":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/comments/125187380"},"html":{"href":"https://github.com/turingschool-examples/credit_check/pull/7#discussion_r125187380"},"pull_request":{"href":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/7","id":128162478,"html_url":"https://github.com/turingschool-examples/credit_check/pull/7","diff_url":"https://github.com/turingschool-examples/credit_check/pull/7.diff","patch_url":"https://github.com/turingschool-examples/credit_check/pull/7.patch","issue_url":"https://api.github.com/repos/turingschool-examples/credit_check/issues/7","number":7,"state":"open","locked":false,"title":"Sam Nayrouz-1706-Credit Check Submission","user":{"login":"snayrouz","id":24593186,"avatar_url":"https://avatars3.githubusercontent.com/u/24593186?v=3","gravatar_id":"","url":"https://api.github.com/users/snayrouz","html_url":"https://github.com/snayrouz","followers_url":"https://api.github.com/users/snayrouz/followers","following_url":"https://api.github.com/users/snayrouz/following{/other_user}","gists_url":"https://api.github.com/users/snayrouz/gists{/gist_id}","starred_url":"https://api.github.com/users/snayrouz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snayrouz/subscriptions","organizations_url":"https://api.github.com/users/snayrouz/orgs","repos_url":"https://api.github.com/users/snayrouz/repos","events_url":"https://api.github.com/users/snayrouz/events{/privacy}","received_events_url":"https://api.github.com/users/snayrouz/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-29T14:15:49Z","updated_at":"2017-07-02T16:45:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f7c752e3a2e91e4fef4f09cb1825efe9c20e338","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/7/commits","review_comments_url":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/7/comments","review_comment_url":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool-examples/credit_check/issues/7/comments","statuses_url":"https://api.github.com/repos/turingschool-examples/credit_check/statuses/8e7c8342e1080bae74662514d21840a313f6912d","head":{"label":"snayrouz:master","ref":"master","sha":"8e7c8342e1080bae74662514d21840a313f6912d","user":{"login":"snayrouz","id":24593186,"avatar_url":"https://avatars3.githubusercontent.com/u/24593186?v=3","gravatar_id":"","url":"https://api.github.com/users/snayrouz","html_url":"https://github.com/snayrouz","followers_url":"https://api.github.com/users/snayrouz/followers","following_url":"https://api.github.com/users/snayrouz/following{/other_user}","gists_url":"https://api.github.com/users/snayrouz/gists{/gist_id}","starred_url":"https://api.github.com/users/snayrouz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snayrouz/subscriptions","organizations_url":"https://api.github.com/users/snayrouz/orgs","repos_url":"https://api.github.com/users/snayrouz/repos","events_url":"https://api.github.com/users/snayrouz/events{/privacy}","received_events_url":"https://api.github.com/users/snayrouz/received_events","type":"User","site_admin":false},"repo":{"id":95603960,"name":"credit_check","full_name":"snayrouz/credit_check","owner":{"login":"snayrouz","id":24593186,"avatar_url":"https://avatars3.githubusercontent.com/u/24593186?v=3","gravatar_id":"","url":"https://api.github.com/users/snayrouz","html_url":"https://github.com/snayrouz","followers_url":"https://api.github.com/users/snayrouz/followers","following_url":"https://api.github.com/users/snayrouz/following{/other_user}","gists_url":"https://api.github.com/users/snayrouz/gists{/gist_id}","starred_url":"https://api.github.com/users/snayrouz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snayrouz/subscriptions","organizations_url":"https://api.github.com/users/snayrouz/orgs","repos_url":"https://api.github.com/users/snayrouz/repos","events_url":"https://api.github.com/users/snayrouz/events{/privacy}","received_events_url":"https://api.github.com/users/snayrouz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/snayrouz/credit_check","description":"BEM1 Credit Check Starter Repo","fork":true,"url":"https://api.github.com/repos/snayrouz/credit_check","forks_url":"https://api.github.com/repos/snayrouz/credit_check/forks","keys_url":"https://api.github.com/repos/snayrouz/credit_check/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snayrouz/credit_check/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snayrouz/credit_check/teams","hooks_url":"https://api.github.com/repos/snayrouz/credit_check/hooks","issue_events_url":"https://api.github.com/repos/snayrouz/credit_check/issues/events{/number}","events_url":"https://api.github.com/repos/snayrouz/credit_check/events","assignees_url":"https://api.github.com/repos/snayrouz/credit_check/assignees{/user}","branches_url":"https://api.github.com/repos/snayrouz/credit_check/branches{/branch}","tags_url":"https://api.github.com/repos/snayrouz/credit_check/tags","blobs_url":"https://api.github.com/repos/snayrouz/credit_check/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snayrouz/credit_check/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snayrouz/credit_check/git/refs{/sha}","trees_url":"https://api.github.com/repos/snayrouz/credit_check/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snayrouz/credit_check/statuses/{sha}","languages_url":"https://api.github.com/repos/snayrouz/credit_check/languages","stargazers_url":"https://api.github.com/repos/snayrouz/credit_check/stargazers","contributors_url":"https://api.github.com/repos/snayrouz/credit_check/contributors","subscribers_url":"https://api.github.com/repos/snayrouz/credit_check/subscribers","subscription_url":"https://api.github.com/repos/snayrouz/credit_check/subscription","commits_url":"https://api.github.com/repos/snayrouz/credit_check/commits{/sha}","git_commits_url":"https://api.github.com/repos/snayrouz/credit_check/git/commits{/sha}","comments_url":"https://api.github.com/repos/snayrouz/credit_check/comments{/number}","issue_comment_url":"https://api.github.com/repos/snayrouz/credit_check/issues/comments{/number}","contents_url":"https://api.github.com/repos/snayrouz/credit_check/contents/{+path}","compare_url":"https://api.github.com/repos/snayrouz/credit_check/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snayrouz/credit_check/merges","archive_url":"https://api.github.com/repos/snayrouz/credit_check/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snayrouz/credit_check/downloads","issues_url":"https://api.github.com/repos/snayrouz/credit_check/issues{/number}","pulls_url":"https://api.github.com/repos/snayrouz/credit_check/pulls{/number}","milestones_url":"https://api.github.com/repos/snayrouz/credit_check/milestones{/number}","notifications_url":"https://api.github.com/repos/snayrouz/credit_check/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snayrouz/credit_check/labels{/name}","releases_url":"https://api.github.com/repos/snayrouz/credit_check/releases{/id}","deployments_url":"https://api.github.com/repos/snayrouz/credit_check/deployments","created_at":"2017-06-27T21:52:24Z","updated_at":"2017-06-29T14:14:53Z","pushed_at":"2017-06-29T15:07:54Z","git_url":"git://github.com/snayrouz/credit_check.git","ssh_url":"git@github.com:snayrouz/credit_check.git","clone_url":"https://github.com/snayrouz/credit_check.git","svn_url":"https://github.com/snayrouz/credit_check","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"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":"turingschool-examples:master","ref":"master","sha":"d941d43629808509ab45cbd8edd1234671af9aac","user":{"login":"turingschool-examples","id":8518346,"avatar_url":"https://avatars0.githubusercontent.com/u/8518346?v=3","gravatar_id":"","url":"https://api.github.com/users/turingschool-examples","html_url":"https://github.com/turingschool-examples","followers_url":"https://api.github.com/users/turingschool-examples/followers","following_url":"https://api.github.com/users/turingschool-examples/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-examples/subscriptions","organizations_url":"https://api.github.com/users/turingschool-examples/orgs","repos_url":"https://api.github.com/users/turingschool-examples/repos","events_url":"https://api.github.com/users/turingschool-examples/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-examples/received_events","type":"Organization","site_admin":false},"repo":{"id":94029548,"name":"credit_check","full_name":"turingschool-examples/credit_check","owner":{"login":"turingschool-examples","id":8518346,"avatar_url":"https://avatars0.githubusercontent.com/u/8518346?v=3","gravatar_id":"","url":"https://api.github.com/users/turingschool-examples","html_url":"https://github.com/turingschool-examples","followers_url":"https://api.github.com/users/turingschool-examples/followers","following_url":"https://api.github.com/users/turingschool-examples/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-examples/subscriptions","organizations_url":"https://api.github.com/users/turingschool-examples/orgs","repos_url":"https://api.github.com/users/turingschool-examples/repos","events_url":"https://api.github.com/users/turingschool-examples/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-examples/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/turingschool-examples/credit_check","description":"BEM1 Credit Check Starter Repo","fork":false,"url":"https://api.github.com/repos/turingschool-examples/credit_check","forks_url":"https://api.github.com/repos/turingschool-examples/credit_check/forks","keys_url":"https://api.github.com/repos/turingschool-examples/credit_check/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool-examples/credit_check/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool-examples/credit_check/teams","hooks_url":"https://api.github.com/repos/turingschool-examples/credit_check/hooks","issue_events_url":"https://api.github.com/repos/turingschool-examples/credit_check/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool-examples/credit_check/events","assignees_url":"https://api.github.com/repos/turingschool-examples/credit_check/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool-examples/credit_check/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool-examples/credit_check/tags","blobs_url":"https://api.github.com/repos/turingschool-examples/credit_check/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool-examples/credit_check/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool-examples/credit_check/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool-examples/credit_check/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool-examples/credit_check/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool-examples/credit_check/languages","stargazers_url":"https://api.github.com/repos/turingschool-examples/credit_check/stargazers","contributors_url":"https://api.github.com/repos/turingschool-examples/credit_check/contributors","subscribers_url":"https://api.github.com/repos/turingschool-examples/credit_check/subscribers","subscription_url":"https://api.github.com/repos/turingschool-examples/credit_check/subscription","commits_url":"https://api.github.com/repos/turingschool-examples/credit_check/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool-examples/credit_check/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool-examples/credit_check/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool-examples/credit_check/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool-examples/credit_check/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool-examples/credit_check/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool-examples/credit_check/merges","archive_url":"https://api.github.com/repos/turingschool-examples/credit_check/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool-examples/credit_check/downloads","issues_url":"https://api.github.com/repos/turingschool-examples/credit_check/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool-examples/credit_check/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool-examples/credit_check/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool-examples/credit_check/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool-examples/credit_check/labels{/name}","releases_url":"https://api.github.com/repos/turingschool-examples/credit_check/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool-examples/credit_check/deployments","created_at":"2017-06-11T20:19:10Z","updated_at":"2017-06-11T20:19:10Z","pushed_at":"2017-06-30T15:56:20Z","git_url":"git://github.com/turingschool-examples/credit_check.git","ssh_url":"git@github.com:turingschool-examples/credit_check.git","clone_url":"https://github.com/turingschool-examples/credit_check.git","svn_url":"https://github.com/turingschool-examples/credit_check","homepage":null,"size":0,"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":24,"mirror_url":null,"open_issues_count":5,"forks":24,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/7"},"html":{"href":"https://github.com/turingschool-examples/credit_check/pull/7"},"issue":{"href":"https://api.github.com/repos/turingschool-examples/credit_check/issues/7"},"comments":{"href":"https://api.github.com/repos/turingschool-examples/credit_check/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool-examples/credit_check/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool-examples/credit_check/statuses/8e7c8342e1080bae74662514d21840a313f6912d"}}}}
{"actor":{"display_login":"s-espinosa"}}