{"action":"created","comment":{"url":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/comments/23340564","id":23340564,"diff_hunk":"@@ -1,10 +1,159 @@\n+class Person\n+\tattr_reader :name\n+\n+\tdef initialize(args)\n+\t\t@name = args[:name] || \"John Doe\"\n+\t\t@age \t= args[:age]\t|| 10\n+\t\t@gender = args[:gender] || \"F\"\n+\tend\n+\n+  def age \n+   age = gets.chomp.to_i\n+   if age < 75 \n+      return \"You'll be 75 in #{75 - age} years\"\n+   elsif age == 75 \n+      return \"You're 75!\"\n+   elsif age > 75 \n+      return \"You turned 75 #{ age - 75 } years ago\"\n+    end\n+  end\n+\n+  def greeting(age, gender)\n+    if age < 12 && gender == \"M\"\n+      return \"You are a young boy\"\n+    elsif age > 110 && gender == \"M\"\n+      return \"Are you a great-great grandfather?\"\n+    elsif age < 12 && gender == \"F\"\n+      return \"You are a young girl\"\n+    elsif age > 110 && gender == \"F\"\n+      return \"Are you a great-great grandmother?\"\n+    end\n+  end\n+end\n+\n+class User < Person\n+  attr_accessor :name, :age, :gender\n+  \n+  def initialize(args)\n+  \tsuper(args)\n+    @name = args[:name]\n+    @age  = args[:age]\n+    @gender = args[:gender]\n+    @user = args[:user]\n+  end\n+\n+  def get_name\n+    puts \"What's your name?\"\n+    gets.chomp\n+  end\n+\n+  def get_user_name\n+    print \"Name: \"\n+    return gets.chomp\n+  end\n+\n+  def get_user_age\n+    print \"Age: \"\n+    return gets.chomp\n+  end\n+\n+  def get_user_gender\n+    print \"Gender [MF]\"\n+    gets.chomp\n+  end\n+\n+  def get_user_name\n+    puts \"What's your name?\"\n+    gets.chomp\n+  end\n+\n+  def get_user_age\n+    puts \"Thank you #{user[:name]} How old are you?\"\n+    gets.chomp.to_i\n+  end\n+\n+  def male?\n+    user gender] == \"M\" || user gender] == \"male\"","path":"talkative_robot.rb","position":76,"original_position":76,"commit_id":"d8ab240fe2a1542cccfec32d5e01804a409c5291","original_commit_id":"d8ab240fe2a1542cccfec32d5e01804a409c5291","user":{"login":"rgpass","id":4154682,"avatar_url":"https://avatars.githubusercontent.com/u/4154682?v=3","gravatar_id":"","url":"https://api.github.com/users/rgpass","html_url":"https://github.com/rgpass","followers_url":"https://api.github.com/users/rgpass/followers","following_url":"https://api.github.com/users/rgpass/following{/other_user}","gists_url":"https://api.github.com/users/rgpass/gists{/gist_id}","starred_url":"https://api.github.com/users/rgpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgpass/subscriptions","organizations_url":"https://api.github.com/users/rgpass/orgs","repos_url":"https://api.github.com/users/rgpass/repos","events_url":"https://api.github.com/users/rgpass/events{/privacy}","received_events_url":"https://api.github.com/users/rgpass/received_events","type":"User","site_admin":false},"body":"Probably just want `gender == \"M\" || gender == \"male\"`","created_at":"2015-01-21T22:30:54Z","updated_at":"2015-01-21T22:30:54Z","html_url":"https://github.com/ravencovington/talkative_robot/pull/7#discussion_r23340564","pull_request_url":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/comments/23340564"},"html":{"href":"https://github.com/ravencovington/talkative_robot/pull/7#discussion_r23340564"},"pull_request":{"href":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/7","id":27723381,"html_url":"https://github.com/ravencovington/talkative_robot/pull/7","diff_url":"https://github.com/ravencovington/talkative_robot/pull/7.diff","patch_url":"https://github.com/ravencovington/talkative_robot/pull/7.patch","issue_url":"https://api.github.com/repos/ravencovington/talkative_robot/issues/7","number":7,"state":"open","locked":false,"title":"Class","user":{"login":"ravencovington","id":7322948,"avatar_url":"https://avatars.githubusercontent.com/u/7322948?v=3","gravatar_id":"","url":"https://api.github.com/users/ravencovington","html_url":"https://github.com/ravencovington","followers_url":"https://api.github.com/users/ravencovington/followers","following_url":"https://api.github.com/users/ravencovington/following{/other_user}","gists_url":"https://api.github.com/users/ravencovington/gists{/gist_id}","starred_url":"https://api.github.com/users/ravencovington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravencovington/subscriptions","organizations_url":"https://api.github.com/users/ravencovington/orgs","repos_url":"https://api.github.com/users/ravencovington/repos","events_url":"https://api.github.com/users/ravencovington/events{/privacy}","received_events_url":"https://api.github.com/users/ravencovington/received_events","type":"User","site_admin":false},"body":"{\r\n  \"comfortability\": 3 or 4,\r\n  \"completeness\": 5,\r\n}","created_at":"2015-01-20T23:44:15Z","updated_at":"2015-01-21T22:30:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34813d9b8070bfa175eec07769f7ce92be47767d","assignee":{"login":"rgpass","id":4154682,"avatar_url":"https://avatars.githubusercontent.com/u/4154682?v=3","gravatar_id":"","url":"https://api.github.com/users/rgpass","html_url":"https://github.com/rgpass","followers_url":"https://api.github.com/users/rgpass/followers","following_url":"https://api.github.com/users/rgpass/following{/other_user}","gists_url":"https://api.github.com/users/rgpass/gists{/gist_id}","starred_url":"https://api.github.com/users/rgpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgpass/subscriptions","organizations_url":"https://api.github.com/users/rgpass/orgs","repos_url":"https://api.github.com/users/rgpass/repos","events_url":"https://api.github.com/users/rgpass/events{/privacy}","received_events_url":"https://api.github.com/users/rgpass/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/7/commits","review_comments_url":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/7/comments","review_comment_url":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ravencovington/talkative_robot/issues/7/comments","statuses_url":"https://api.github.com/repos/ravencovington/talkative_robot/statuses/d8ab240fe2a1542cccfec32d5e01804a409c5291","head":{"label":"ravencovington:class","ref":"class","sha":"d8ab240fe2a1542cccfec32d5e01804a409c5291","user":{"login":"ravencovington","id":7322948,"avatar_url":"https://avatars.githubusercontent.com/u/7322948?v=3","gravatar_id":"","url":"https://api.github.com/users/ravencovington","html_url":"https://github.com/ravencovington","followers_url":"https://api.github.com/users/ravencovington/followers","following_url":"https://api.github.com/users/ravencovington/following{/other_user}","gists_url":"https://api.github.com/users/ravencovington/gists{/gist_id}","starred_url":"https://api.github.com/users/ravencovington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravencovington/subscriptions","organizations_url":"https://api.github.com/users/ravencovington/orgs","repos_url":"https://api.github.com/users/ravencovington/repos","events_url":"https://api.github.com/users/ravencovington/events{/privacy}","received_events_url":"https://api.github.com/users/ravencovington/received_events","type":"User","site_admin":false},"repo":{"id":29248259,"name":"talkative_robot","full_name":"ravencovington/talkative_robot","owner":{"login":"ravencovington","id":7322948,"avatar_url":"https://avatars.githubusercontent.com/u/7322948?v=3","gravatar_id":"","url":"https://api.github.com/users/ravencovington","html_url":"https://github.com/ravencovington","followers_url":"https://api.github.com/users/ravencovington/followers","following_url":"https://api.github.com/users/ravencovington/following{/other_user}","gists_url":"https://api.github.com/users/ravencovington/gists{/gist_id}","starred_url":"https://api.github.com/users/ravencovington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravencovington/subscriptions","organizations_url":"https://api.github.com/users/ravencovington/orgs","repos_url":"https://api.github.com/users/ravencovington/repos","events_url":"https://api.github.com/users/ravencovington/events{/privacy}","received_events_url":"https://api.github.com/users/ravencovington/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ravencovington/talkative_robot","description":"","fork":false,"url":"https://api.github.com/repos/ravencovington/talkative_robot","forks_url":"https://api.github.com/repos/ravencovington/talkative_robot/forks","keys_url":"https://api.github.com/repos/ravencovington/talkative_robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ravencovington/talkative_robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ravencovington/talkative_robot/teams","hooks_url":"https://api.github.com/repos/ravencovington/talkative_robot/hooks","issue_events_url":"https://api.github.com/repos/ravencovington/talkative_robot/issues/events{/number}","events_url":"https://api.github.com/repos/ravencovington/talkative_robot/events","assignees_url":"https://api.github.com/repos/ravencovington/talkative_robot/assignees{/user}","branches_url":"https://api.github.com/repos/ravencovington/talkative_robot/branches{/branch}","tags_url":"https://api.github.com/repos/ravencovington/talkative_robot/tags","blobs_url":"https://api.github.com/repos/ravencovington/talkative_robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ravencovington/talkative_robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ravencovington/talkative_robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ravencovington/talkative_robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ravencovington/talkative_robot/statuses/{sha}","languages_url":"https://api.github.com/repos/ravencovington/talkative_robot/languages","stargazers_url":"https://api.github.com/repos/ravencovington/talkative_robot/stargazers","contributors_url":"https://api.github.com/repos/ravencovington/talkative_robot/contributors","subscribers_url":"https://api.github.com/repos/ravencovington/talkative_robot/subscribers","subscription_url":"https://api.github.com/repos/ravencovington/talkative_robot/subscription","commits_url":"https://api.github.com/repos/ravencovington/talkative_robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ravencovington/talkative_robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ravencovington/talkative_robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ravencovington/talkative_robot/issues/comments/{number}","contents_url":"https://api.github.com/repos/ravencovington/talkative_robot/contents/{+path}","compare_url":"https://api.github.com/repos/ravencovington/talkative_robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ravencovington/talkative_robot/merges","archive_url":"https://api.github.com/repos/ravencovington/talkative_robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ravencovington/talkative_robot/downloads","issues_url":"https://api.github.com/repos/ravencovington/talkative_robot/issues{/number}","pulls_url":"https://api.github.com/repos/ravencovington/talkative_robot/pulls{/number}","milestones_url":"https://api.github.com/repos/ravencovington/talkative_robot/milestones{/number}","notifications_url":"https://api.github.com/repos/ravencovington/talkative_robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ravencovington/talkative_robot/labels{/name}","releases_url":"https://api.github.com/repos/ravencovington/talkative_robot/releases{/id}","created_at":"2015-01-14T14:35:19Z","updated_at":"2015-01-15T20:27:22Z","pushed_at":"2015-01-21T19:18:46Z","git_url":"git://github.com/ravencovington/talkative_robot.git","ssh_url":"git@github.com:ravencovington/talkative_robot.git","clone_url":"https://github.com/ravencovington/talkative_robot.git","svn_url":"https://github.com/ravencovington/talkative_robot","homepage":null,"size":356,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ravencovington:master","ref":"master","sha":"afa0b35ff6b63f676929a0b4c016e64a9889310f","user":{"login":"ravencovington","id":7322948,"avatar_url":"https://avatars.githubusercontent.com/u/7322948?v=3","gravatar_id":"","url":"https://api.github.com/users/ravencovington","html_url":"https://github.com/ravencovington","followers_url":"https://api.github.com/users/ravencovington/followers","following_url":"https://api.github.com/users/ravencovington/following{/other_user}","gists_url":"https://api.github.com/users/ravencovington/gists{/gist_id}","starred_url":"https://api.github.com/users/ravencovington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravencovington/subscriptions","organizations_url":"https://api.github.com/users/ravencovington/orgs","repos_url":"https://api.github.com/users/ravencovington/repos","events_url":"https://api.github.com/users/ravencovington/events{/privacy}","received_events_url":"https://api.github.com/users/ravencovington/received_events","type":"User","site_admin":false},"repo":{"id":29248259,"name":"talkative_robot","full_name":"ravencovington/talkative_robot","owner":{"login":"ravencovington","id":7322948,"avatar_url":"https://avatars.githubusercontent.com/u/7322948?v=3","gravatar_id":"","url":"https://api.github.com/users/ravencovington","html_url":"https://github.com/ravencovington","followers_url":"https://api.github.com/users/ravencovington/followers","following_url":"https://api.github.com/users/ravencovington/following{/other_user}","gists_url":"https://api.github.com/users/ravencovington/gists{/gist_id}","starred_url":"https://api.github.com/users/ravencovington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravencovington/subscriptions","organizations_url":"https://api.github.com/users/ravencovington/orgs","repos_url":"https://api.github.com/users/ravencovington/repos","events_url":"https://api.github.com/users/ravencovington/events{/privacy}","received_events_url":"https://api.github.com/users/ravencovington/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ravencovington/talkative_robot","description":"","fork":false,"url":"https://api.github.com/repos/ravencovington/talkative_robot","forks_url":"https://api.github.com/repos/ravencovington/talkative_robot/forks","keys_url":"https://api.github.com/repos/ravencovington/talkative_robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ravencovington/talkative_robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ravencovington/talkative_robot/teams","hooks_url":"https://api.github.com/repos/ravencovington/talkative_robot/hooks","issue_events_url":"https://api.github.com/repos/ravencovington/talkative_robot/issues/events{/number}","events_url":"https://api.github.com/repos/ravencovington/talkative_robot/events","assignees_url":"https://api.github.com/repos/ravencovington/talkative_robot/assignees{/user}","branches_url":"https://api.github.com/repos/ravencovington/talkative_robot/branches{/branch}","tags_url":"https://api.github.com/repos/ravencovington/talkative_robot/tags","blobs_url":"https://api.github.com/repos/ravencovington/talkative_robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ravencovington/talkative_robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ravencovington/talkative_robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ravencovington/talkative_robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ravencovington/talkative_robot/statuses/{sha}","languages_url":"https://api.github.com/repos/ravencovington/talkative_robot/languages","stargazers_url":"https://api.github.com/repos/ravencovington/talkative_robot/stargazers","contributors_url":"https://api.github.com/repos/ravencovington/talkative_robot/contributors","subscribers_url":"https://api.github.com/repos/ravencovington/talkative_robot/subscribers","subscription_url":"https://api.github.com/repos/ravencovington/talkative_robot/subscription","commits_url":"https://api.github.com/repos/ravencovington/talkative_robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ravencovington/talkative_robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ravencovington/talkative_robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ravencovington/talkative_robot/issues/comments/{number}","contents_url":"https://api.github.com/repos/ravencovington/talkative_robot/contents/{+path}","compare_url":"https://api.github.com/repos/ravencovington/talkative_robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ravencovington/talkative_robot/merges","archive_url":"https://api.github.com/repos/ravencovington/talkative_robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ravencovington/talkative_robot/downloads","issues_url":"https://api.github.com/repos/ravencovington/talkative_robot/issues{/number}","pulls_url":"https://api.github.com/repos/ravencovington/talkative_robot/pulls{/number}","milestones_url":"https://api.github.com/repos/ravencovington/talkative_robot/milestones{/number}","notifications_url":"https://api.github.com/repos/ravencovington/talkative_robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ravencovington/talkative_robot/labels{/name}","releases_url":"https://api.github.com/repos/ravencovington/talkative_robot/releases{/id}","created_at":"2015-01-14T14:35:19Z","updated_at":"2015-01-15T20:27:22Z","pushed_at":"2015-01-21T19:18:46Z","git_url":"git://github.com/ravencovington/talkative_robot.git","ssh_url":"git@github.com:ravencovington/talkative_robot.git","clone_url":"https://github.com/ravencovington/talkative_robot.git","svn_url":"https://github.com/ravencovington/talkative_robot","homepage":null,"size":356,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/7"},"html":{"href":"https://github.com/ravencovington/talkative_robot/pull/7"},"issue":{"href":"https://api.github.com/repos/ravencovington/talkative_robot/issues/7"},"comments":{"href":"https://api.github.com/repos/ravencovington/talkative_robot/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ravencovington/talkative_robot/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/ravencovington/talkative_robot/statuses/d8ab240fe2a1542cccfec32d5e01804a409c5291"}}}}