{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/yelp-ios/pulls/comments/84324340","pull_request_review_id":5109056,"id":84324340,"diff_hunk":"@@ -8,84 +8,48 @@\n \n #import \"YLPBusiness.h\"\n #import \"YLPCategory.h\"\n-#import \"YLPGiftCertificate.h\"\n+#import \"YLPCoordinate.h\"\n #import \"YLPLocation.h\"\n #import \"YLPResponsePrivate.h\"\n \n @implementation YLPBusiness\n \n - (instancetype)initWithDictionary:(NSDictionary *)businessDict {\n     if (self = [super init]) {\n-        _claimed = [businessDict[@\"is_claimed\"] boolValue];\n-        _closed = [businessDict[@\"is_closed\"] boolValue];\n-        \n-        _ratingImgURL = [[NSURL alloc] initWithString:businessDict[@\"rating_img_url\"]];\n-        _ratingImgURLSmall = [[NSURL alloc] initWithString:businessDict[@\"rating_img_url_small\"]];\n-        _ratingImgURLLarge = [[NSURL alloc] initWithString:businessDict[@\"rating_img_url_large\"]];\n-        _mobileURL = [[NSURL alloc] initWithString:businessDict[@\"mobile_url\"]];\n         _URL = [[NSURL alloc] initWithString:businessDict[@\"url\"]];\n-        \n-        _snippetImageURL = businessDict[@\"snippet_image_url\"] ? [[NSURL alloc] initWithString:businessDict[@\"snippet_image_url\"]] : nil;\n         _imageURL = businessDict[@\"image_url\"] ? [[NSURL alloc] initWithString:businessDict[@\"image_url\"]] : nil;\n-        _reservationURL = businessDict[@\"reservation_url\"] ? [[NSURL alloc] initWithString:businessDict[@\"reservation_url\"]] : nil;\n-        _eat24URL = businessDict[@\"eat24_url\"] ? [[NSURL alloc] initWithString:businessDict[@\"eat24_url\"]] : nil;\n         \n         _rating = [businessDict[@\"rating\"] doubleValue];\n-       \n         _reviewCount = [businessDict[@\"review_count\"] integerValue];\n         \n-        _snippetText = businessDict[@\"snippet_text\"];\n-        _menuProvider = businessDict[@\"menu_provider\"];\n-        _displayPhone = businessDict[@\"display_phone\"];\n         _name = businessDict[@\"name\"];\n         _phone = businessDict[@\"phone\"];\n         _identifier = businessDict[@\"id\"];\n         \n-        _menuDateUpdated = [NSDate dateWithTimeIntervalSince1970:[businessDict[@\"menu_date_updated\"] doubleValue]];\n         _categories = [self.class categoriesFromJSONArray:businessDict[@\"categories\"]];\n-        _reviews = [self.class reviewsFromJSONArray:businessDict[@\"reviews\"]];\n-        _giftCertificates = [self.class giftCertificatesFromJSONArray:businessDict[@\"gift_certificates\"]];\n-        _deals = [self.class dealsFromJSONArray:businessDict[@\"deals\"]];\n-        _location = [[YLPLocation alloc] initWithDictionary:businessDict[@\"location\"]];\n+        YLPCoordinate *coordinate = [self.class coordinateFromJSONDictionary:businessDict[@\"coordinates\"]];\n+        _location = [[YLPLocation alloc] initWithDictionary:businessDict[@\"location\"] coordinate:coordinate];","path":"Classes/Response/YLPBusiness.m","position":45,"original_position":45,"commit_id":"45554ab8dc33a6c26472e60721e1ad6deab8ebd2","original_commit_id":"45554ab8dc33a6c26472e60721e1ad6deab8ebd2","user":{"login":"thibaudrobelain","id":3008124,"avatar_url":"https://avatars.githubusercontent.com/u/3008124?v=3","gravatar_id":"","url":"https://api.github.com/users/thibaudrobelain","html_url":"https://github.com/thibaudrobelain","followers_url":"https://api.github.com/users/thibaudrobelain/followers","following_url":"https://api.github.com/users/thibaudrobelain/following{/other_user}","gists_url":"https://api.github.com/users/thibaudrobelain/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaudrobelain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaudrobelain/subscriptions","organizations_url":"https://api.github.com/users/thibaudrobelain/orgs","repos_url":"https://api.github.com/users/thibaudrobelain/repos","events_url":"https://api.github.com/users/thibaudrobelain/events{/privacy}","received_events_url":"https://api.github.com/users/thibaudrobelain/received_events","type":"User","site_admin":false},"body":"curious as to why coordinate is being created here now instead of in YLPLocation with its init just being - [ initWithDictionary:]","created_at":"2016-10-20T16:35:43Z","updated_at":"2016-10-20T16:35:43Z","html_url":"https://github.com/Yelp/yelp-ios/pull/48#discussion_r84324340","pull_request_url":"https://api.github.com/repos/Yelp/yelp-ios/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/Yelp/yelp-ios/pulls/comments/84324340"},"html":{"href":"https://github.com/Yelp/yelp-ios/pull/48#discussion_r84324340"},"pull_request":{"href":"https://api.github.com/repos/Yelp/yelp-ios/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/yelp-ios/pulls/48","id":89518728,"html_url":"https://github.com/Yelp/yelp-ios/pull/48","diff_url":"https://github.com/Yelp/yelp-ios/pull/48.diff","patch_url":"https://github.com/Yelp/yelp-ios/pull/48.patch","issue_url":"https://api.github.com/repos/Yelp/yelp-ios/issues/48","number":48,"state":"open","locked":false,"title":"Update business lookup for API v3","user":{"login":"SSheldon","id":478311,"avatar_url":"https://avatars.githubusercontent.com/u/478311?v=3","gravatar_id":"","url":"https://api.github.com/users/SSheldon","html_url":"https://github.com/SSheldon","followers_url":"https://api.github.com/users/SSheldon/followers","following_url":"https://api.github.com/users/SSheldon/following{/other_user}","gists_url":"https://api.github.com/users/SSheldon/gists{/gist_id}","starred_url":"https://api.github.com/users/SSheldon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SSheldon/subscriptions","organizations_url":"https://api.github.com/users/SSheldon/orgs","repos_url":"https://api.github.com/users/SSheldon/repos","events_url":"https://api.github.com/users/SSheldon/events{/privacy}","received_events_url":"https://api.github.com/users/SSheldon/received_events","type":"User","site_admin":false},"body":"(Based off of #45 and #46)\r\n\r\nThis changes `YLPBusiness` from its API v2 format to its API v3 format. Largely that involves deleting a lot of things, along with some changes to how categories and locations are parsed.\r\n\r\nI fixed the business tests but the search & phone search tests won't be working until they can be updated to new mocks, so I've disabled them until that's done.","created_at":"2016-10-16T07:39:42Z","updated_at":"2016-10-20T16:35:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a31041dacb98cd30fb09072d17be8e9d226967a0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/yelp-ios/pulls/48/commits","review_comments_url":"https://api.github.com/repos/Yelp/yelp-ios/pulls/48/comments","review_comment_url":"https://api.github.com/repos/Yelp/yelp-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/yelp-ios/issues/48/comments","statuses_url":"https://api.github.com/repos/Yelp/yelp-ios/statuses/45554ab8dc33a6c26472e60721e1ad6deab8ebd2","head":{"label":"Yelp:v3_biz","ref":"v3_biz","sha":"45554ab8dc33a6c26472e60721e1ad6deab8ebd2","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":47569744,"name":"yelp-ios","full_name":"Yelp/yelp-ios","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/yelp-ios","description":null,"fork":false,"url":"https://api.github.com/repos/Yelp/yelp-ios","forks_url":"https://api.github.com/repos/Yelp/yelp-ios/forks","keys_url":"https://api.github.com/repos/Yelp/yelp-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/yelp-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/yelp-ios/teams","hooks_url":"https://api.github.com/repos/Yelp/yelp-ios/hooks","issue_events_url":"https://api.github.com/repos/Yelp/yelp-ios/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/yelp-ios/events","assignees_url":"https://api.github.com/repos/Yelp/yelp-ios/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/yelp-ios/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/yelp-ios/tags","blobs_url":"https://api.github.com/repos/Yelp/yelp-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/yelp-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/yelp-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/yelp-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/yelp-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/yelp-ios/languages","stargazers_url":"https://api.github.com/repos/Yelp/yelp-ios/stargazers","contributors_url":"https://api.github.com/repos/Yelp/yelp-ios/contributors","subscribers_url":"https://api.github.com/repos/Yelp/yelp-ios/subscribers","subscription_url":"https://api.github.com/repos/Yelp/yelp-ios/subscription","commits_url":"https://api.github.com/repos/Yelp/yelp-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/yelp-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/yelp-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/yelp-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/yelp-ios/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/yelp-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/yelp-ios/merges","archive_url":"https://api.github.com/repos/Yelp/yelp-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/yelp-ios/downloads","issues_url":"https://api.github.com/repos/Yelp/yelp-ios/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/yelp-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/yelp-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/yelp-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/yelp-ios/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/yelp-ios/releases{/id}","deployments_url":"https://api.github.com/repos/Yelp/yelp-ios/deployments","created_at":"2015-12-07T18:00:35Z","updated_at":"2016-10-17T01:46:18Z","pushed_at":"2016-10-18T19:01:30Z","git_url":"git://github.com/Yelp/yelp-ios.git","ssh_url":"git@github.com:Yelp/yelp-ios.git","clone_url":"https://github.com/Yelp/yelp-ios.git","svn_url":"https://github.com/Yelp/yelp-ios","homepage":null,"size":278,"stargazers_count":10,"watchers_count":10,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":7,"forks":7,"open_issues":7,"watchers":10,"default_branch":"master"}},"base":{"label":"Yelp:api_v3","ref":"api_v3","sha":"f0a7bd096c4f95c75b7dfc3d3edc864b9fbddf62","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":47569744,"name":"yelp-ios","full_name":"Yelp/yelp-ios","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/yelp-ios","description":null,"fork":false,"url":"https://api.github.com/repos/Yelp/yelp-ios","forks_url":"https://api.github.com/repos/Yelp/yelp-ios/forks","keys_url":"https://api.github.com/repos/Yelp/yelp-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/yelp-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/yelp-ios/teams","hooks_url":"https://api.github.com/repos/Yelp/yelp-ios/hooks","issue_events_url":"https://api.github.com/repos/Yelp/yelp-ios/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/yelp-ios/events","assignees_url":"https://api.github.com/repos/Yelp/yelp-ios/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/yelp-ios/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/yelp-ios/tags","blobs_url":"https://api.github.com/repos/Yelp/yelp-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/yelp-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/yelp-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/yelp-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/yelp-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/yelp-ios/languages","stargazers_url":"https://api.github.com/repos/Yelp/yelp-ios/stargazers","contributors_url":"https://api.github.com/repos/Yelp/yelp-ios/contributors","subscribers_url":"https://api.github.com/repos/Yelp/yelp-ios/subscribers","subscription_url":"https://api.github.com/repos/Yelp/yelp-ios/subscription","commits_url":"https://api.github.com/repos/Yelp/yelp-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/yelp-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/yelp-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/yelp-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/yelp-ios/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/yelp-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/yelp-ios/merges","archive_url":"https://api.github.com/repos/Yelp/yelp-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/yelp-ios/downloads","issues_url":"https://api.github.com/repos/Yelp/yelp-ios/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/yelp-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/yelp-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/yelp-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/yelp-ios/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/yelp-ios/releases{/id}","deployments_url":"https://api.github.com/repos/Yelp/yelp-ios/deployments","created_at":"2015-12-07T18:00:35Z","updated_at":"2016-10-17T01:46:18Z","pushed_at":"2016-10-18T19:01:30Z","git_url":"git://github.com/Yelp/yelp-ios.git","ssh_url":"git@github.com:Yelp/yelp-ios.git","clone_url":"https://github.com/Yelp/yelp-ios.git","svn_url":"https://github.com/Yelp/yelp-ios","homepage":null,"size":278,"stargazers_count":10,"watchers_count":10,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":7,"forks":7,"open_issues":7,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/yelp-ios/pulls/48"},"html":{"href":"https://github.com/Yelp/yelp-ios/pull/48"},"issue":{"href":"https://api.github.com/repos/Yelp/yelp-ios/issues/48"},"comments":{"href":"https://api.github.com/repos/Yelp/yelp-ios/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/yelp-ios/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/yelp-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/yelp-ios/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/yelp-ios/statuses/45554ab8dc33a6c26472e60721e1ad6deab8ebd2"}}}}
{"actor":{"display_login":"thibaudrobelain"}}