{"action":"created","comment":{"url":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/comments/56714902","id":56714902,"diff_hunk":"@@ -35,7 +35,26 @@ def add_movie(movie)\n \n       def get_movie_by_name(name)\n         if load_file['movies'].value?(name)\n-          MovieMates::Movie.new(name: name)\n+          movie = MovieMates::Movie.new(name: name)\n+          imdb_rating = get_imdb_rating_from_movie(movie)\n+          rotten_tomatoes_rating = get_rotten_tomatoes_rating_from_movie(movie)","path":"lib/movie_mates/store/file.rb","position":7,"original_position":7,"commit_id":"b23389899cb54dce4500b11fc580f3077601dc68","original_commit_id":"b23389899cb54dce4500b11fc580f3077601dc68","user":{"login":"woqer","id":4426659,"avatar_url":"https://avatars.githubusercontent.com/u/4426659?v=3","gravatar_id":"","url":"https://api.github.com/users/woqer","html_url":"https://github.com/woqer","followers_url":"https://api.github.com/users/woqer/followers","following_url":"https://api.github.com/users/woqer/following{/other_user}","gists_url":"https://api.github.com/users/woqer/gists{/gist_id}","starred_url":"https://api.github.com/users/woqer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woqer/subscriptions","organizations_url":"https://api.github.com/users/woqer/orgs","repos_url":"https://api.github.com/users/woqer/repos","events_url":"https://api.github.com/users/woqer/events{/privacy}","received_events_url":"https://api.github.com/users/woqer/received_events","type":"User","site_admin":false},"body":"`for` en vez de `from`: el rating es un atributo de la película, aunque la forma de almacenarlo ahora sea al revés. `for` me suena más a \"vete a rotten (web o tabla o lo que toque) y consígueme el rating\", cuando quiero que sea \"dame el rating almacenado de esta película, sea como esté almacenado\"","created_at":"2016-03-18T20:08:34Z","updated_at":"2016-03-18T20:08:34Z","html_url":"https://github.com/Ferdy89/movie_mates/pull/27#discussion_r56714902","pull_request_url":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/comments/56714902"},"html":{"href":"https://github.com/Ferdy89/movie_mates/pull/27#discussion_r56714902"},"pull_request":{"href":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/27","id":63151956,"html_url":"https://github.com/Ferdy89/movie_mates/pull/27","diff_url":"https://github.com/Ferdy89/movie_mates/pull/27.diff","patch_url":"https://github.com/Ferdy89/movie_mates/pull/27.patch","issue_url":"https://api.github.com/repos/Ferdy89/movie_mates/issues/27","number":27,"state":"open","locked":false,"title":"Store rotten tomatoes ratings","user":{"login":"woqer","id":4426659,"avatar_url":"https://avatars.githubusercontent.com/u/4426659?v=3","gravatar_id":"","url":"https://api.github.com/users/woqer","html_url":"https://github.com/woqer","followers_url":"https://api.github.com/users/woqer/followers","following_url":"https://api.github.com/users/woqer/following{/other_user}","gists_url":"https://api.github.com/users/woqer/gists{/gist_id}","starred_url":"https://api.github.com/users/woqer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woqer/subscriptions","organizations_url":"https://api.github.com/users/woqer/orgs","repos_url":"https://api.github.com/users/woqer/repos","events_url":"https://api.github.com/users/woqer/events{/privacy}","received_events_url":"https://api.github.com/users/woqer/received_events","type":"User","site_admin":false},"body":"  * now rotten tomatoes rating is a movie attribute\r\n  * fetcher method in store::file to handle nil values on ratings (not same as 0)\r\n  * convention to treat all ratings (imdb and rotten) as float numbers","created_at":"2016-03-16T23:25:15Z","updated_at":"2016-03-18T20:08:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c79e70b1d737f7f46d8253743c81e0ce3ee2bbc5","assignee":{"login":"woqer","id":4426659,"avatar_url":"https://avatars.githubusercontent.com/u/4426659?v=3","gravatar_id":"","url":"https://api.github.com/users/woqer","html_url":"https://github.com/woqer","followers_url":"https://api.github.com/users/woqer/followers","following_url":"https://api.github.com/users/woqer/following{/other_user}","gists_url":"https://api.github.com/users/woqer/gists{/gist_id}","starred_url":"https://api.github.com/users/woqer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woqer/subscriptions","organizations_url":"https://api.github.com/users/woqer/orgs","repos_url":"https://api.github.com/users/woqer/repos","events_url":"https://api.github.com/users/woqer/events{/privacy}","received_events_url":"https://api.github.com/users/woqer/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/27/commits","review_comments_url":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/27/comments","review_comment_url":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ferdy89/movie_mates/issues/27/comments","statuses_url":"https://api.github.com/repos/Ferdy89/movie_mates/statuses/b23389899cb54dce4500b11fc580f3077601dc68","head":{"label":"Ferdy89:store_rotten_tomatoes_ratings","ref":"store_rotten_tomatoes_ratings","sha":"b23389899cb54dce4500b11fc580f3077601dc68","user":{"login":"Ferdy89","id":1112217,"avatar_url":"https://avatars.githubusercontent.com/u/1112217?v=3","gravatar_id":"","url":"https://api.github.com/users/Ferdy89","html_url":"https://github.com/Ferdy89","followers_url":"https://api.github.com/users/Ferdy89/followers","following_url":"https://api.github.com/users/Ferdy89/following{/other_user}","gists_url":"https://api.github.com/users/Ferdy89/gists{/gist_id}","starred_url":"https://api.github.com/users/Ferdy89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ferdy89/subscriptions","organizations_url":"https://api.github.com/users/Ferdy89/orgs","repos_url":"https://api.github.com/users/Ferdy89/repos","events_url":"https://api.github.com/users/Ferdy89/events{/privacy}","received_events_url":"https://api.github.com/users/Ferdy89/received_events","type":"User","site_admin":false},"repo":{"id":53218731,"name":"movie_mates","full_name":"Ferdy89/movie_mates","owner":{"login":"Ferdy89","id":1112217,"avatar_url":"https://avatars.githubusercontent.com/u/1112217?v=3","gravatar_id":"","url":"https://api.github.com/users/Ferdy89","html_url":"https://github.com/Ferdy89","followers_url":"https://api.github.com/users/Ferdy89/followers","following_url":"https://api.github.com/users/Ferdy89/following{/other_user}","gists_url":"https://api.github.com/users/Ferdy89/gists{/gist_id}","starred_url":"https://api.github.com/users/Ferdy89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ferdy89/subscriptions","organizations_url":"https://api.github.com/users/Ferdy89/orgs","repos_url":"https://api.github.com/users/Ferdy89/repos","events_url":"https://api.github.com/users/Ferdy89/events{/privacy}","received_events_url":"https://api.github.com/users/Ferdy89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ferdy89/movie_mates","description":"Find the right movie to watch with the right friends","fork":false,"url":"https://api.github.com/repos/Ferdy89/movie_mates","forks_url":"https://api.github.com/repos/Ferdy89/movie_mates/forks","keys_url":"https://api.github.com/repos/Ferdy89/movie_mates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ferdy89/movie_mates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ferdy89/movie_mates/teams","hooks_url":"https://api.github.com/repos/Ferdy89/movie_mates/hooks","issue_events_url":"https://api.github.com/repos/Ferdy89/movie_mates/issues/events{/number}","events_url":"https://api.github.com/repos/Ferdy89/movie_mates/events","assignees_url":"https://api.github.com/repos/Ferdy89/movie_mates/assignees{/user}","branches_url":"https://api.github.com/repos/Ferdy89/movie_mates/branches{/branch}","tags_url":"https://api.github.com/repos/Ferdy89/movie_mates/tags","blobs_url":"https://api.github.com/repos/Ferdy89/movie_mates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ferdy89/movie_mates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ferdy89/movie_mates/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ferdy89/movie_mates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ferdy89/movie_mates/statuses/{sha}","languages_url":"https://api.github.com/repos/Ferdy89/movie_mates/languages","stargazers_url":"https://api.github.com/repos/Ferdy89/movie_mates/stargazers","contributors_url":"https://api.github.com/repos/Ferdy89/movie_mates/contributors","subscribers_url":"https://api.github.com/repos/Ferdy89/movie_mates/subscribers","subscription_url":"https://api.github.com/repos/Ferdy89/movie_mates/subscription","commits_url":"https://api.github.com/repos/Ferdy89/movie_mates/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ferdy89/movie_mates/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ferdy89/movie_mates/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ferdy89/movie_mates/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ferdy89/movie_mates/contents/{+path}","compare_url":"https://api.github.com/repos/Ferdy89/movie_mates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ferdy89/movie_mates/merges","archive_url":"https://api.github.com/repos/Ferdy89/movie_mates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ferdy89/movie_mates/downloads","issues_url":"https://api.github.com/repos/Ferdy89/movie_mates/issues{/number}","pulls_url":"https://api.github.com/repos/Ferdy89/movie_mates/pulls{/number}","milestones_url":"https://api.github.com/repos/Ferdy89/movie_mates/milestones{/number}","notifications_url":"https://api.github.com/repos/Ferdy89/movie_mates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ferdy89/movie_mates/labels{/name}","releases_url":"https://api.github.com/repos/Ferdy89/movie_mates/releases{/id}","deployments_url":"https://api.github.com/repos/Ferdy89/movie_mates/deployments","created_at":"2016-03-05T19:17:35Z","updated_at":"2016-03-09T22:43:06Z","pushed_at":"2016-03-18T18:44:17Z","git_url":"git://github.com/Ferdy89/movie_mates.git","ssh_url":"git@github.com:Ferdy89/movie_mates.git","clone_url":"https://github.com/Ferdy89/movie_mates.git","svn_url":"https://github.com/Ferdy89/movie_mates","homepage":null,"size":7005,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"Ferdy89:master","ref":"master","sha":"22e5dbf83a454351f91d0ccdbbb6a7a5054de335","user":{"login":"Ferdy89","id":1112217,"avatar_url":"https://avatars.githubusercontent.com/u/1112217?v=3","gravatar_id":"","url":"https://api.github.com/users/Ferdy89","html_url":"https://github.com/Ferdy89","followers_url":"https://api.github.com/users/Ferdy89/followers","following_url":"https://api.github.com/users/Ferdy89/following{/other_user}","gists_url":"https://api.github.com/users/Ferdy89/gists{/gist_id}","starred_url":"https://api.github.com/users/Ferdy89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ferdy89/subscriptions","organizations_url":"https://api.github.com/users/Ferdy89/orgs","repos_url":"https://api.github.com/users/Ferdy89/repos","events_url":"https://api.github.com/users/Ferdy89/events{/privacy}","received_events_url":"https://api.github.com/users/Ferdy89/received_events","type":"User","site_admin":false},"repo":{"id":53218731,"name":"movie_mates","full_name":"Ferdy89/movie_mates","owner":{"login":"Ferdy89","id":1112217,"avatar_url":"https://avatars.githubusercontent.com/u/1112217?v=3","gravatar_id":"","url":"https://api.github.com/users/Ferdy89","html_url":"https://github.com/Ferdy89","followers_url":"https://api.github.com/users/Ferdy89/followers","following_url":"https://api.github.com/users/Ferdy89/following{/other_user}","gists_url":"https://api.github.com/users/Ferdy89/gists{/gist_id}","starred_url":"https://api.github.com/users/Ferdy89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ferdy89/subscriptions","organizations_url":"https://api.github.com/users/Ferdy89/orgs","repos_url":"https://api.github.com/users/Ferdy89/repos","events_url":"https://api.github.com/users/Ferdy89/events{/privacy}","received_events_url":"https://api.github.com/users/Ferdy89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ferdy89/movie_mates","description":"Find the right movie to watch with the right friends","fork":false,"url":"https://api.github.com/repos/Ferdy89/movie_mates","forks_url":"https://api.github.com/repos/Ferdy89/movie_mates/forks","keys_url":"https://api.github.com/repos/Ferdy89/movie_mates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ferdy89/movie_mates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ferdy89/movie_mates/teams","hooks_url":"https://api.github.com/repos/Ferdy89/movie_mates/hooks","issue_events_url":"https://api.github.com/repos/Ferdy89/movie_mates/issues/events{/number}","events_url":"https://api.github.com/repos/Ferdy89/movie_mates/events","assignees_url":"https://api.github.com/repos/Ferdy89/movie_mates/assignees{/user}","branches_url":"https://api.github.com/repos/Ferdy89/movie_mates/branches{/branch}","tags_url":"https://api.github.com/repos/Ferdy89/movie_mates/tags","blobs_url":"https://api.github.com/repos/Ferdy89/movie_mates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ferdy89/movie_mates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ferdy89/movie_mates/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ferdy89/movie_mates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ferdy89/movie_mates/statuses/{sha}","languages_url":"https://api.github.com/repos/Ferdy89/movie_mates/languages","stargazers_url":"https://api.github.com/repos/Ferdy89/movie_mates/stargazers","contributors_url":"https://api.github.com/repos/Ferdy89/movie_mates/contributors","subscribers_url":"https://api.github.com/repos/Ferdy89/movie_mates/subscribers","subscription_url":"https://api.github.com/repos/Ferdy89/movie_mates/subscription","commits_url":"https://api.github.com/repos/Ferdy89/movie_mates/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ferdy89/movie_mates/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ferdy89/movie_mates/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ferdy89/movie_mates/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ferdy89/movie_mates/contents/{+path}","compare_url":"https://api.github.com/repos/Ferdy89/movie_mates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ferdy89/movie_mates/merges","archive_url":"https://api.github.com/repos/Ferdy89/movie_mates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ferdy89/movie_mates/downloads","issues_url":"https://api.github.com/repos/Ferdy89/movie_mates/issues{/number}","pulls_url":"https://api.github.com/repos/Ferdy89/movie_mates/pulls{/number}","milestones_url":"https://api.github.com/repos/Ferdy89/movie_mates/milestones{/number}","notifications_url":"https://api.github.com/repos/Ferdy89/movie_mates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ferdy89/movie_mates/labels{/name}","releases_url":"https://api.github.com/repos/Ferdy89/movie_mates/releases{/id}","deployments_url":"https://api.github.com/repos/Ferdy89/movie_mates/deployments","created_at":"2016-03-05T19:17:35Z","updated_at":"2016-03-09T22:43:06Z","pushed_at":"2016-03-18T18:44:17Z","git_url":"git://github.com/Ferdy89/movie_mates.git","ssh_url":"git@github.com:Ferdy89/movie_mates.git","clone_url":"https://github.com/Ferdy89/movie_mates.git","svn_url":"https://github.com/Ferdy89/movie_mates","homepage":null,"size":7005,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/27"},"html":{"href":"https://github.com/Ferdy89/movie_mates/pull/27"},"issue":{"href":"https://api.github.com/repos/Ferdy89/movie_mates/issues/27"},"comments":{"href":"https://api.github.com/repos/Ferdy89/movie_mates/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ferdy89/movie_mates/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/Ferdy89/movie_mates/statuses/b23389899cb54dce4500b11fc580f3077601dc68"}}}}