{"action":"created","comment":{"url":"https://api.github.com/repos/andela/getmyshop/pulls/comments/62013375","id":62013375,"diff_hunk":"@@ -6,4 +6,9 @@ class Address < ActiveRecord::Base\n   validates :email, format: {\n     with: /\\A([^@\\s]+)@((?:[-a-z0-9]+\\.)+[a-z]{2,})\\Z/\n   }\n+\n+  def archive\n+    self.archived_at = Time.now\n+    save","path":"app/models/address.rb","position":7,"original_position":7,"commit_id":"e4ac125ec3d67f8b9785b6e66ef675ae93060dd0","original_commit_id":"e4ac125ec3d67f8b9785b6e66ef675ae93060dd0","user":{"login":"andela-osogunle","id":8073910,"avatar_url":"https://avatars.githubusercontent.com/u/8073910?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-osogunle","html_url":"https://github.com/andela-osogunle","followers_url":"https://api.github.com/users/andela-osogunle/followers","following_url":"https://api.github.com/users/andela-osogunle/following{/other_user}","gists_url":"https://api.github.com/users/andela-osogunle/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-osogunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-osogunle/subscriptions","organizations_url":"https://api.github.com/users/andela-osogunle/orgs","repos_url":"https://api.github.com/users/andela-osogunle/repos","events_url":"https://api.github.com/users/andela-osogunle/events{/privacy}","received_events_url":"https://api.github.com/users/andela-osogunle/received_events","type":"User","site_admin":false},"body":"NICE!","created_at":"2016-05-04T09:42:00Z","updated_at":"2016-05-04T09:42:00Z","html_url":"https://github.com/andela/getmyshop/pull/94#discussion_r62013375","pull_request_url":"https://api.github.com/repos/andela/getmyshop/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/andela/getmyshop/pulls/comments/62013375"},"html":{"href":"https://github.com/andela/getmyshop/pull/94#discussion_r62013375"},"pull_request":{"href":"https://api.github.com/repos/andela/getmyshop/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/andela/getmyshop/pulls/94","id":68182602,"html_url":"https://github.com/andela/getmyshop/pull/94","diff_url":"https://github.com/andela/getmyshop/pull/94.diff","patch_url":"https://github.com/andela/getmyshop/pull/94.patch","issue_url":"https://api.github.com/repos/andela/getmyshop/issues/94","number":94,"state":"open","locked":false,"title":"117064357 Updating and deleting address ","user":{"login":"andela-gogbara","id":5628767,"avatar_url":"https://avatars.githubusercontent.com/u/5628767?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-gogbara","html_url":"https://github.com/andela-gogbara","followers_url":"https://api.github.com/users/andela-gogbara/followers","following_url":"https://api.github.com/users/andela-gogbara/following{/other_user}","gists_url":"https://api.github.com/users/andela-gogbara/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-gogbara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-gogbara/subscriptions","organizations_url":"https://api.github.com/users/andela-gogbara/orgs","repos_url":"https://api.github.com/users/andela-gogbara/repos","events_url":"https://api.github.com/users/andela-gogbara/events{/privacy}","received_events_url":"https://api.github.com/users/andela-gogbara/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nIt allows users to update or delete their address.\r\n\r\n#### Description of Task to be completed?\r\nAdd address controller with actions for updating and destroying addresses.\r\n\r\n#### How should this be manually tested?\r\nDuring the checkout process, a user can decide to update or delete their address. \r\n\r\n#### Any background context you want to provide?\r\nThe destroy action uses a soft delete method where addresses are archived instead been destroy.\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n\t#117064357","created_at":"2016-04-28T08:34:04Z","updated_at":"2016-05-04T09:42:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2aabdd0b45fa3f7fbc9f2874708e875d62bc5b9d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela/getmyshop/pulls/94/commits","review_comments_url":"https://api.github.com/repos/andela/getmyshop/pulls/94/comments","review_comment_url":"https://api.github.com/repos/andela/getmyshop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/getmyshop/issues/94/comments","statuses_url":"https://api.github.com/repos/andela/getmyshop/statuses/e4ac125ec3d67f8b9785b6e66ef675ae93060dd0","head":{"label":"andela:ft-update-and-delete-address-117064357","ref":"ft-update-and-delete-address-117064357","sha":"e4ac125ec3d67f8b9785b6e66ef675ae93060dd0","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":45830862,"name":"getmyshop","full_name":"andela/getmyshop","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/getmyshop","description":"Online shop for rent","fork":false,"url":"https://api.github.com/repos/andela/getmyshop","forks_url":"https://api.github.com/repos/andela/getmyshop/forks","keys_url":"https://api.github.com/repos/andela/getmyshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/getmyshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/getmyshop/teams","hooks_url":"https://api.github.com/repos/andela/getmyshop/hooks","issue_events_url":"https://api.github.com/repos/andela/getmyshop/issues/events{/number}","events_url":"https://api.github.com/repos/andela/getmyshop/events","assignees_url":"https://api.github.com/repos/andela/getmyshop/assignees{/user}","branches_url":"https://api.github.com/repos/andela/getmyshop/branches{/branch}","tags_url":"https://api.github.com/repos/andela/getmyshop/tags","blobs_url":"https://api.github.com/repos/andela/getmyshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/getmyshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/getmyshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/getmyshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/getmyshop/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/getmyshop/languages","stargazers_url":"https://api.github.com/repos/andela/getmyshop/stargazers","contributors_url":"https://api.github.com/repos/andela/getmyshop/contributors","subscribers_url":"https://api.github.com/repos/andela/getmyshop/subscribers","subscription_url":"https://api.github.com/repos/andela/getmyshop/subscription","commits_url":"https://api.github.com/repos/andela/getmyshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/getmyshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/getmyshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/getmyshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/getmyshop/contents/{+path}","compare_url":"https://api.github.com/repos/andela/getmyshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/getmyshop/merges","archive_url":"https://api.github.com/repos/andela/getmyshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/getmyshop/downloads","issues_url":"https://api.github.com/repos/andela/getmyshop/issues{/number}","pulls_url":"https://api.github.com/repos/andela/getmyshop/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/getmyshop/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/getmyshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/getmyshop/labels{/name}","releases_url":"https://api.github.com/repos/andela/getmyshop/releases{/id}","deployments_url":"https://api.github.com/repos/andela/getmyshop/deployments","created_at":"2015-11-09T10:22:52Z","updated_at":"2016-04-05T09:30:21Z","pushed_at":"2016-05-04T09:06:43Z","git_url":"git://github.com/andela/getmyshop.git","ssh_url":"git@github.com:andela/getmyshop.git","clone_url":"https://github.com/andela/getmyshop.git","svn_url":"https://github.com/andela/getmyshop","homepage":"http://getmyshop-staging.herokuapp.com","size":1354,"stargazers_count":4,"watchers_count":4,"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":4,"default_branch":"master"}},"base":{"label":"andela:master","ref":"master","sha":"745fcc5c67db0f682110e11f676cee55a9674cc6","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":45830862,"name":"getmyshop","full_name":"andela/getmyshop","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/getmyshop","description":"Online shop for rent","fork":false,"url":"https://api.github.com/repos/andela/getmyshop","forks_url":"https://api.github.com/repos/andela/getmyshop/forks","keys_url":"https://api.github.com/repos/andela/getmyshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/getmyshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/getmyshop/teams","hooks_url":"https://api.github.com/repos/andela/getmyshop/hooks","issue_events_url":"https://api.github.com/repos/andela/getmyshop/issues/events{/number}","events_url":"https://api.github.com/repos/andela/getmyshop/events","assignees_url":"https://api.github.com/repos/andela/getmyshop/assignees{/user}","branches_url":"https://api.github.com/repos/andela/getmyshop/branches{/branch}","tags_url":"https://api.github.com/repos/andela/getmyshop/tags","blobs_url":"https://api.github.com/repos/andela/getmyshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/getmyshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/getmyshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/getmyshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/getmyshop/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/getmyshop/languages","stargazers_url":"https://api.github.com/repos/andela/getmyshop/stargazers","contributors_url":"https://api.github.com/repos/andela/getmyshop/contributors","subscribers_url":"https://api.github.com/repos/andela/getmyshop/subscribers","subscription_url":"https://api.github.com/repos/andela/getmyshop/subscription","commits_url":"https://api.github.com/repos/andela/getmyshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/getmyshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/getmyshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/getmyshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/getmyshop/contents/{+path}","compare_url":"https://api.github.com/repos/andela/getmyshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/getmyshop/merges","archive_url":"https://api.github.com/repos/andela/getmyshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/getmyshop/downloads","issues_url":"https://api.github.com/repos/andela/getmyshop/issues{/number}","pulls_url":"https://api.github.com/repos/andela/getmyshop/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/getmyshop/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/getmyshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/getmyshop/labels{/name}","releases_url":"https://api.github.com/repos/andela/getmyshop/releases{/id}","deployments_url":"https://api.github.com/repos/andela/getmyshop/deployments","created_at":"2015-11-09T10:22:52Z","updated_at":"2016-04-05T09:30:21Z","pushed_at":"2016-05-04T09:06:43Z","git_url":"git://github.com/andela/getmyshop.git","ssh_url":"git@github.com:andela/getmyshop.git","clone_url":"https://github.com/andela/getmyshop.git","svn_url":"https://github.com/andela/getmyshop","homepage":"http://getmyshop-staging.herokuapp.com","size":1354,"stargazers_count":4,"watchers_count":4,"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":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/getmyshop/pulls/94"},"html":{"href":"https://github.com/andela/getmyshop/pull/94"},"issue":{"href":"https://api.github.com/repos/andela/getmyshop/issues/94"},"comments":{"href":"https://api.github.com/repos/andela/getmyshop/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/getmyshop/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/getmyshop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/getmyshop/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/andela/getmyshop/statuses/e4ac125ec3d67f8b9785b6e66ef675ae93060dd0"}}}}