{"action":"created","comment":{"url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/comments/71063532","id":71063532,"diff_hunk":"@@ -15,14 +15,8 @@ def increase\n       @quantity += 1\n     end\n \n-    def decrease\n-      @quantity -= 1\n-    end\n-\n-    def to_s\n-      \"#{id}\".ljust(4) +\n-      \"#{product_id}\".ljust(13) +\n-      \"#{quantity}\".ljust(10)\n+    def decrease(amount)\n+      @quantity -= amount","path":"Shop/lib/models/depot_record.rb","position":13,"original_position":13,"commit_id":"83aa3ede18c8b3126f0fe3fe66fa552ab0e2a30e","original_commit_id":"83aa3ede18c8b3126f0fe3fe66fa552ab0e2a30e","user":{"login":"gotar","id":135318,"avatar_url":"https://avatars.githubusercontent.com/u/135318?v=3","gravatar_id":"","url":"https://api.github.com/users/gotar","html_url":"https://github.com/gotar","followers_url":"https://api.github.com/users/gotar/followers","following_url":"https://api.github.com/users/gotar/following{/other_user}","gists_url":"https://api.github.com/users/gotar/gists{/gist_id}","starred_url":"https://api.github.com/users/gotar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gotar/subscriptions","organizations_url":"https://api.github.com/users/gotar/orgs","repos_url":"https://api.github.com/users/gotar/repos","events_url":"https://api.github.com/users/gotar/events{/privacy}","received_events_url":"https://api.github.com/users/gotar/received_events","type":"User","site_admin":false},"body":"you have accessor for quantity so you can just use `quantity`, no need to use @quantity var directly","created_at":"2016-07-16T09:11:54Z","updated_at":"2016-07-16T09:11:54Z","html_url":"https://github.com/agalkiewicz/ragnarson-internship/pull/2#discussion_r71063532","pull_request_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/comments/71063532"},"html":{"href":"https://github.com/agalkiewicz/ragnarson-internship/pull/2#discussion_r71063532"},"pull_request":{"href":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/2","id":77649139,"html_url":"https://github.com/agalkiewicz/ragnarson-internship/pull/2","diff_url":"https://github.com/agalkiewicz/ragnarson-internship/pull/2.diff","patch_url":"https://github.com/agalkiewicz/ragnarson-internship/pull/2.patch","issue_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/issues/2","number":2,"state":"open","locked":false,"title":"Solid foundations of Shop web app","user":{"login":"agalkiewicz","id":7493474,"avatar_url":"https://avatars.githubusercontent.com/u/7493474?v=3","gravatar_id":"","url":"https://api.github.com/users/agalkiewicz","html_url":"https://github.com/agalkiewicz","followers_url":"https://api.github.com/users/agalkiewicz/followers","following_url":"https://api.github.com/users/agalkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/agalkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/agalkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agalkiewicz/subscriptions","organizations_url":"https://api.github.com/users/agalkiewicz/orgs","repos_url":"https://api.github.com/users/agalkiewicz/repos","events_url":"https://api.github.com/users/agalkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/agalkiewicz/received_events","type":"User","site_admin":false},"body":"Unnecessary methods and services deleted. Minimalistic style based on Bootstrap. I have been working on the app yet (especially on tests - so do not read these ones, they are invalid). I've just created this PR because of many files changed (but these changes are mainly deleted pieces of code).\r\n\r\nEdit: Unit model tests corrected. Green when are run all and separately. @gotar","created_at":"2016-07-15T17:20:45Z","updated_at":"2016-07-16T09:11:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe6f6d23c051be0f08879931c094f59c857b9a22","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/2/commits","review_comments_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/2/comments","review_comment_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/issues/2/comments","statuses_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/statuses/83aa3ede18c8b3126f0fe3fe66fa552ab0e2a30e","head":{"label":"agalkiewicz:web-app","ref":"web-app","sha":"83aa3ede18c8b3126f0fe3fe66fa552ab0e2a30e","user":{"login":"agalkiewicz","id":7493474,"avatar_url":"https://avatars.githubusercontent.com/u/7493474?v=3","gravatar_id":"","url":"https://api.github.com/users/agalkiewicz","html_url":"https://github.com/agalkiewicz","followers_url":"https://api.github.com/users/agalkiewicz/followers","following_url":"https://api.github.com/users/agalkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/agalkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/agalkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agalkiewicz/subscriptions","organizations_url":"https://api.github.com/users/agalkiewicz/orgs","repos_url":"https://api.github.com/users/agalkiewicz/repos","events_url":"https://api.github.com/users/agalkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/agalkiewicz/received_events","type":"User","site_admin":false},"repo":{"id":62883714,"name":"ragnarson-internship","full_name":"agalkiewicz/ragnarson-internship","owner":{"login":"agalkiewicz","id":7493474,"avatar_url":"https://avatars.githubusercontent.com/u/7493474?v=3","gravatar_id":"","url":"https://api.github.com/users/agalkiewicz","html_url":"https://github.com/agalkiewicz","followers_url":"https://api.github.com/users/agalkiewicz/followers","following_url":"https://api.github.com/users/agalkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/agalkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/agalkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agalkiewicz/subscriptions","organizations_url":"https://api.github.com/users/agalkiewicz/orgs","repos_url":"https://api.github.com/users/agalkiewicz/repos","events_url":"https://api.github.com/users/agalkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/agalkiewicz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agalkiewicz/ragnarson-internship","description":null,"fork":false,"url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship","forks_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/forks","keys_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/teams","hooks_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/hooks","issue_events_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/issues/events{/number}","events_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/events","assignees_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/assignees{/user}","branches_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/branches{/branch}","tags_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/tags","blobs_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/git/refs{/sha}","trees_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/statuses/{sha}","languages_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/languages","stargazers_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/stargazers","contributors_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/contributors","subscribers_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/subscribers","subscription_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/subscription","commits_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/commits{/sha}","git_commits_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/git/commits{/sha}","comments_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/comments{/number}","issue_comment_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/issues/comments{/number}","contents_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/contents/{+path}","compare_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/merges","archive_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/downloads","issues_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/issues{/number}","pulls_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls{/number}","milestones_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/milestones{/number}","notifications_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/labels{/name}","releases_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/releases{/id}","deployments_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/deployments","created_at":"2016-07-08T11:26:32Z","updated_at":"2016-07-08T11:29:19Z","pushed_at":"2016-07-16T08:56:12Z","git_url":"git://github.com/agalkiewicz/ragnarson-internship.git","ssh_url":"git@github.com:agalkiewicz/ragnarson-internship.git","clone_url":"https://github.com/agalkiewicz/ragnarson-internship.git","svn_url":"https://github.com/agalkiewicz/ragnarson-internship","homepage":null,"size":38,"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":"agalkiewicz:master","ref":"master","sha":"6f0f3640dafaaf16f9c6db9f63905833a8c1a232","user":{"login":"agalkiewicz","id":7493474,"avatar_url":"https://avatars.githubusercontent.com/u/7493474?v=3","gravatar_id":"","url":"https://api.github.com/users/agalkiewicz","html_url":"https://github.com/agalkiewicz","followers_url":"https://api.github.com/users/agalkiewicz/followers","following_url":"https://api.github.com/users/agalkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/agalkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/agalkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agalkiewicz/subscriptions","organizations_url":"https://api.github.com/users/agalkiewicz/orgs","repos_url":"https://api.github.com/users/agalkiewicz/repos","events_url":"https://api.github.com/users/agalkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/agalkiewicz/received_events","type":"User","site_admin":false},"repo":{"id":62883714,"name":"ragnarson-internship","full_name":"agalkiewicz/ragnarson-internship","owner":{"login":"agalkiewicz","id":7493474,"avatar_url":"https://avatars.githubusercontent.com/u/7493474?v=3","gravatar_id":"","url":"https://api.github.com/users/agalkiewicz","html_url":"https://github.com/agalkiewicz","followers_url":"https://api.github.com/users/agalkiewicz/followers","following_url":"https://api.github.com/users/agalkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/agalkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/agalkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agalkiewicz/subscriptions","organizations_url":"https://api.github.com/users/agalkiewicz/orgs","repos_url":"https://api.github.com/users/agalkiewicz/repos","events_url":"https://api.github.com/users/agalkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/agalkiewicz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agalkiewicz/ragnarson-internship","description":null,"fork":false,"url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship","forks_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/forks","keys_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/teams","hooks_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/hooks","issue_events_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/issues/events{/number}","events_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/events","assignees_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/assignees{/user}","branches_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/branches{/branch}","tags_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/tags","blobs_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/git/refs{/sha}","trees_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/statuses/{sha}","languages_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/languages","stargazers_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/stargazers","contributors_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/contributors","subscribers_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/subscribers","subscription_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/subscription","commits_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/commits{/sha}","git_commits_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/git/commits{/sha}","comments_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/comments{/number}","issue_comment_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/issues/comments{/number}","contents_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/contents/{+path}","compare_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/merges","archive_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/downloads","issues_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/issues{/number}","pulls_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls{/number}","milestones_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/milestones{/number}","notifications_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/labels{/name}","releases_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/releases{/id}","deployments_url":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/deployments","created_at":"2016-07-08T11:26:32Z","updated_at":"2016-07-08T11:29:19Z","pushed_at":"2016-07-16T08:56:12Z","git_url":"git://github.com/agalkiewicz/ragnarson-internship.git","ssh_url":"git@github.com:agalkiewicz/ragnarson-internship.git","clone_url":"https://github.com/agalkiewicz/ragnarson-internship.git","svn_url":"https://github.com/agalkiewicz/ragnarson-internship","homepage":null,"size":38,"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/agalkiewicz/ragnarson-internship/pulls/2"},"html":{"href":"https://github.com/agalkiewicz/ragnarson-internship/pull/2"},"issue":{"href":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/issues/2"},"comments":{"href":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/agalkiewicz/ragnarson-internship/statuses/83aa3ede18c8b3126f0fe3fe66fa552ab0e2a30e"}}}}
{"actor":{"display_login":"gotar"}}