{"action":"created","comment":{"url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/comments/37829594","id":37829594,"diff_hunk":"@@ -0,0 +1,51 @@\n+require 'pry'\n+\n+class Thermostat\n+\n+  attr_accessor :temp\n+  attr_accessor :target\n+\n+  def initialize(degrees)\n+    @degrees = degrees\n+  end\n+\n+  def calibrate_temp(target_temp)\n+\n+    if @degrees > target_temp \n+      turn_off_heater(@degrees)\n+    elsif @degrees < target_temp\n+      turn_on_heater(@degrees)\n+    else\n+      puts \"It is #{@degrees} perfect temperature\"\n+    end\n+     \n+  end\n+\n+  def self.detect_temperature(all_temps, target_temp)\n+    all_temps.each do |degree|\n+    @degree = Thermostat.new(degree)\n+    @degree.calibrate_temp(target_temp)\n+    end\n+\n+  end\n+\n+  private\n+    def turn_on_heater(degree)\n+      puts \"It is #{degree}. It is Cold, We need some heat!\"\n+    end\n+\n+    def turn_off_heater(degree)\n+      puts \"It is #{degree}. It is very hot, We need some cold temp!\"\n+    end\n+\n+end\n+\n+\n+all_temps = [45,65,85,95,66,99,75,12,22,45,65,75,70,100,10,52,22]\n+\n+target_temp = 75","path":"DavidJuarez-djuare/hw_7/thermostat.rb","position":46,"original_position":46,"commit_id":"ee3a7cbcb7bb3d2b9578fddc6a2c263b017602c5","original_commit_id":"ee3a7cbcb7bb3d2b9578fddc6a2c263b017602c5","user":{"login":"Borgaard","id":7587991,"avatar_url":"https://avatars.githubusercontent.com/u/7587991?v=3","gravatar_id":"","url":"https://api.github.com/users/Borgaard","html_url":"https://github.com/Borgaard","followers_url":"https://api.github.com/users/Borgaard/followers","following_url":"https://api.github.com/users/Borgaard/following{/other_user}","gists_url":"https://api.github.com/users/Borgaard/gists{/gist_id}","starred_url":"https://api.github.com/users/Borgaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Borgaard/subscriptions","organizations_url":"https://api.github.com/users/Borgaard/orgs","repos_url":"https://api.github.com/users/Borgaard/repos","events_url":"https://api.github.com/users/Borgaard/events{/privacy}","received_events_url":"https://api.github.com/users/Borgaard/received_events","type":"User","site_admin":false},"body":"You seem to be grasping the core language very well, David. Add in some notes to describe what more complex parts of your code is doing, or specific questions about the functionality of some section of your code.","created_at":"2015-08-25T03:27:57Z","updated_at":"2015-08-25T03:27:57Z","html_url":"https://github.com/ga-students/bewd_sf_10_homework/pull/148#discussion_r37829594","pull_request_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/148","_links":{"self":{"href":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/comments/37829594"},"html":{"href":"https://github.com/ga-students/bewd_sf_10_homework/pull/148#discussion_r37829594"},"pull_request":{"href":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/148"}}},"pull_request":{"url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/148","id":43219533,"html_url":"https://github.com/ga-students/bewd_sf_10_homework/pull/148","diff_url":"https://github.com/ga-students/bewd_sf_10_homework/pull/148.diff","patch_url":"https://github.com/ga-students/bewd_sf_10_homework/pull/148.patch","issue_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/issues/148","number":148,"state":"open","locked":false,"title":"pushing hw7 thermostat.rb file - DJ","user":{"login":"djuare","id":6990702,"avatar_url":"https://avatars.githubusercontent.com/u/6990702?v=3","gravatar_id":"","url":"https://api.github.com/users/djuare","html_url":"https://github.com/djuare","followers_url":"https://api.github.com/users/djuare/followers","following_url":"https://api.github.com/users/djuare/following{/other_user}","gists_url":"https://api.github.com/users/djuare/gists{/gist_id}","starred_url":"https://api.github.com/users/djuare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djuare/subscriptions","organizations_url":"https://api.github.com/users/djuare/orgs","repos_url":"https://api.github.com/users/djuare/repos","events_url":"https://api.github.com/users/djuare/events{/privacy}","received_events_url":"https://api.github.com/users/djuare/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-24T20:45:39Z","updated_at":"2015-08-25T03:27:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a4242d2183756a4ed882e07e43c5625c7fb1538","assignee":{"login":"Borgaard","id":7587991,"avatar_url":"https://avatars.githubusercontent.com/u/7587991?v=3","gravatar_id":"","url":"https://api.github.com/users/Borgaard","html_url":"https://github.com/Borgaard","followers_url":"https://api.github.com/users/Borgaard/followers","following_url":"https://api.github.com/users/Borgaard/following{/other_user}","gists_url":"https://api.github.com/users/Borgaard/gists{/gist_id}","starred_url":"https://api.github.com/users/Borgaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Borgaard/subscriptions","organizations_url":"https://api.github.com/users/Borgaard/orgs","repos_url":"https://api.github.com/users/Borgaard/repos","events_url":"https://api.github.com/users/Borgaard/events{/privacy}","received_events_url":"https://api.github.com/users/Borgaard/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/148/commits","review_comments_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/148/comments","review_comment_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/issues/148/comments","statuses_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/statuses/ee3a7cbcb7bb3d2b9578fddc6a2c263b017602c5","head":{"label":"djuare:master","ref":"master","sha":"ee3a7cbcb7bb3d2b9578fddc6a2c263b017602c5","user":{"login":"djuare","id":6990702,"avatar_url":"https://avatars.githubusercontent.com/u/6990702?v=3","gravatar_id":"","url":"https://api.github.com/users/djuare","html_url":"https://github.com/djuare","followers_url":"https://api.github.com/users/djuare/followers","following_url":"https://api.github.com/users/djuare/following{/other_user}","gists_url":"https://api.github.com/users/djuare/gists{/gist_id}","starred_url":"https://api.github.com/users/djuare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djuare/subscriptions","organizations_url":"https://api.github.com/users/djuare/orgs","repos_url":"https://api.github.com/users/djuare/repos","events_url":"https://api.github.com/users/djuare/events{/privacy}","received_events_url":"https://api.github.com/users/djuare/received_events","type":"User","site_admin":false},"repo":{"id":39925781,"name":"bewd_sf_10_homework","full_name":"djuare/bewd_sf_10_homework","owner":{"login":"djuare","id":6990702,"avatar_url":"https://avatars.githubusercontent.com/u/6990702?v=3","gravatar_id":"","url":"https://api.github.com/users/djuare","html_url":"https://github.com/djuare","followers_url":"https://api.github.com/users/djuare/followers","following_url":"https://api.github.com/users/djuare/following{/other_user}","gists_url":"https://api.github.com/users/djuare/gists{/gist_id}","starred_url":"https://api.github.com/users/djuare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djuare/subscriptions","organizations_url":"https://api.github.com/users/djuare/orgs","repos_url":"https://api.github.com/users/djuare/repos","events_url":"https://api.github.com/users/djuare/events{/privacy}","received_events_url":"https://api.github.com/users/djuare/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djuare/bewd_sf_10_homework","description":"BEWD 10 Cohort Homework","fork":true,"url":"https://api.github.com/repos/djuare/bewd_sf_10_homework","forks_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/forks","keys_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/teams","hooks_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/hooks","issue_events_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/issues/events{/number}","events_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/events","assignees_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/assignees{/user}","branches_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/branches{/branch}","tags_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/tags","blobs_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/languages","stargazers_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/stargazers","contributors_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/contributors","subscribers_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/subscribers","subscription_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/subscription","commits_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/contents/{+path}","compare_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/merges","archive_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/downloads","issues_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/issues{/number}","pulls_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/labels{/name}","releases_url":"https://api.github.com/repos/djuare/bewd_sf_10_homework/releases{/id}","created_at":"2015-07-30T01:54:09Z","updated_at":"2015-07-30T04:58:00Z","pushed_at":"2015-08-24T20:44:13Z","git_url":"git://github.com/djuare/bewd_sf_10_homework.git","ssh_url":"git@github.com:djuare/bewd_sf_10_homework.git","clone_url":"https://github.com/djuare/bewd_sf_10_homework.git","svn_url":"https://github.com/djuare/bewd_sf_10_homework","homepage":null,"size":101,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"ga-students:master","ref":"master","sha":"05034e60b325f9ca760d691b1bf923596963bc31","user":{"login":"ga-students","id":5048067,"avatar_url":"https://avatars.githubusercontent.com/u/5048067?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-students","html_url":"https://github.com/ga-students","followers_url":"https://api.github.com/users/ga-students/followers","following_url":"https://api.github.com/users/ga-students/following{/other_user}","gists_url":"https://api.github.com/users/ga-students/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-students/subscriptions","organizations_url":"https://api.github.com/users/ga-students/orgs","repos_url":"https://api.github.com/users/ga-students/repos","events_url":"https://api.github.com/users/ga-students/events{/privacy}","received_events_url":"https://api.github.com/users/ga-students/received_events","type":"Organization","site_admin":false},"repo":{"id":39805458,"name":"bewd_sf_10_homework","full_name":"ga-students/bewd_sf_10_homework","owner":{"login":"ga-students","id":5048067,"avatar_url":"https://avatars.githubusercontent.com/u/5048067?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-students","html_url":"https://github.com/ga-students","followers_url":"https://api.github.com/users/ga-students/followers","following_url":"https://api.github.com/users/ga-students/following{/other_user}","gists_url":"https://api.github.com/users/ga-students/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-students/subscriptions","organizations_url":"https://api.github.com/users/ga-students/orgs","repos_url":"https://api.github.com/users/ga-students/repos","events_url":"https://api.github.com/users/ga-students/events{/privacy}","received_events_url":"https://api.github.com/users/ga-students/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-students/bewd_sf_10_homework","description":"BEWD 10 Cohort Homework","fork":false,"url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework","forks_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/forks","keys_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/teams","hooks_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/hooks","issue_events_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/issues/events{/number}","events_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/events","assignees_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/assignees{/user}","branches_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/branches{/branch}","tags_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/tags","blobs_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/languages","stargazers_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/stargazers","contributors_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/contributors","subscribers_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/subscribers","subscription_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/subscription","commits_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/contents/{+path}","compare_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/merges","archive_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/downloads","issues_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/issues{/number}","pulls_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/labels{/name}","releases_url":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/releases{/id}","created_at":"2015-07-28T00:57:38Z","updated_at":"2015-08-07T03:46:14Z","pushed_at":"2015-08-25T02:55:35Z","git_url":"git://github.com/ga-students/bewd_sf_10_homework.git","ssh_url":"git@github.com:ga-students/bewd_sf_10_homework.git","clone_url":"https://github.com/ga-students/bewd_sf_10_homework.git","svn_url":"https://github.com/ga-students/bewd_sf_10_homework","homepage":null,"size":4869,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":13,"forks":34,"open_issues":13,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/148"},"html":{"href":"https://github.com/ga-students/bewd_sf_10_homework/pull/148"},"issue":{"href":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/issues/148"},"comments":{"href":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/ga-students/bewd_sf_10_homework/statuses/ee3a7cbcb7bb3d2b9578fddc6a2c263b017602c5"}}}}