{"action":"created","comment":{"url":"https://api.github.com/repos/gadventures/gapipy/pulls/comments/26254499","id":26254499,"diff_hunk":"@@ -23,3 +24,42 @@ class ActivityDossier(Resource):\n         ('start_location', 'Place'),\n         ('end_location', 'Place'),\n     ]\n+\n+    _model_collection_fields = [\n+        ('details', DossierDetail),\n+    ]\n+\n+    def __repr__(self):\n+        return '<{} {}>'.format(self.__class__.__name__, self.name)\n+\n+    @property\n+    def duration(self):\n+        \"\"\"\n+        Simulate the duration dict in `ItineraryComponent` objects,","path":"gapipy/resources/dossier/activity_dossier.py","position":36,"original_position":36,"commit_id":"fa5fdda96d6f388b39571ee6ed43a233d3756900","original_commit_id":"fa5fdda96d6f388b39571ee6ed43a233d3756900","user":{"login":"bartek","id":5839,"avatar_url":"https://avatars.githubusercontent.com/u/5839?v=3","gravatar_id":"","url":"https://api.github.com/users/bartek","html_url":"https://github.com/bartek","followers_url":"https://api.github.com/users/bartek/followers","following_url":"https://api.github.com/users/bartek/following{/other_user}","gists_url":"https://api.github.com/users/bartek/gists{/gist_id}","starred_url":"https://api.github.com/users/bartek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartek/subscriptions","organizations_url":"https://api.github.com/users/bartek/orgs","repos_url":"https://api.github.com/users/bartek/repos","events_url":"https://api.github.com/users/bartek/events{/privacy}","received_events_url":"https://api.github.com/users/bartek/received_events","type":"User","site_admin":false},"body":"I see the benefit here, but do we want to simulate this to be \"dot-accessible\" like most objects in gapipy?","created_at":"2015-03-11T20:53:45Z","updated_at":"2015-03-11T20:53:45Z","html_url":"https://github.com/gadventures/gapipy/pull/7#discussion_r26254499","pull_request_url":"https://api.github.com/repos/gadventures/gapipy/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/gadventures/gapipy/pulls/comments/26254499"},"html":{"href":"https://github.com/gadventures/gapipy/pull/7#discussion_r26254499"},"pull_request":{"href":"https://api.github.com/repos/gadventures/gapipy/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/gadventures/gapipy/pulls/7","id":30981500,"html_url":"https://github.com/gadventures/gapipy/pull/7","diff_url":"https://github.com/gadventures/gapipy/pull/7.diff","patch_url":"https://github.com/gadventures/gapipy/pull/7.patch","issue_url":"https://api.github.com/repos/gadventures/gapipy/issues/7","number":7,"state":"open","locked":false,"title":"Add dossier helpers and OptionalActivity model","user":{"login":"Nagyman","id":133376,"avatar_url":"https://avatars.githubusercontent.com/u/133376?v=3","gravatar_id":"","url":"https://api.github.com/users/Nagyman","html_url":"https://github.com/Nagyman","followers_url":"https://api.github.com/users/Nagyman/followers","following_url":"https://api.github.com/users/Nagyman/following{/other_user}","gists_url":"https://api.github.com/users/Nagyman/gists{/gist_id}","starred_url":"https://api.github.com/users/Nagyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nagyman/subscriptions","organizations_url":"https://api.github.com/users/Nagyman/orgs","repos_url":"https://api.github.com/users/Nagyman/repos","events_url":"https://api.github.com/users/Nagyman/events{/privacy}","received_events_url":"https://api.github.com/users/Nagyman/received_events","type":"User","site_admin":false},"body":"* Added duration, price, and location helpers for formatting\r\n  various fields in Dossiers and ItineraryComponents\r\n* Separated DossierDetail/DetailType models for reuse\r\n* Added mixins for using the above helpers\r\n* Added OptionalActivity resource model\r\n* Used the DossierDetail for all dossiers with `details`\r\n* Added shared methods for accessing specific details\r\n\r\nThese changes are intended to support the roll-out of structured\r\nitineraries on our Trip Summary pages, but are also useful for any\r\nclients using this library.\r\n\r\nhttps://trello.com/c/LTKlD6Ac (private)","created_at":"2015-03-11T20:24:05Z","updated_at":"2015-03-11T20:53:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5fb2995df75c474b464a0fa993576fb885681afa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gadventures/gapipy/pulls/7/commits","review_comments_url":"https://api.github.com/repos/gadventures/gapipy/pulls/7/comments","review_comment_url":"https://api.github.com/repos/gadventures/gapipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gadventures/gapipy/issues/7/comments","statuses_url":"https://api.github.com/repos/gadventures/gapipy/statuses/fa5fdda96d6f388b39571ee6ed43a233d3756900","head":{"label":"gadventures:dossier_helpers","ref":"dossier_helpers","sha":"fa5fdda96d6f388b39571ee6ed43a233d3756900","user":{"login":"gadventures","id":1210593,"avatar_url":"https://avatars.githubusercontent.com/u/1210593?v=3","gravatar_id":"","url":"https://api.github.com/users/gadventures","html_url":"https://github.com/gadventures","followers_url":"https://api.github.com/users/gadventures/followers","following_url":"https://api.github.com/users/gadventures/following{/other_user}","gists_url":"https://api.github.com/users/gadventures/gists{/gist_id}","starred_url":"https://api.github.com/users/gadventures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gadventures/subscriptions","organizations_url":"https://api.github.com/users/gadventures/orgs","repos_url":"https://api.github.com/users/gadventures/repos","events_url":"https://api.github.com/users/gadventures/events{/privacy}","received_events_url":"https://api.github.com/users/gadventures/received_events","type":"Organization","site_admin":false},"repo":{"id":20815950,"name":"gapipy","full_name":"gadventures/gapipy","owner":{"login":"gadventures","id":1210593,"avatar_url":"https://avatars.githubusercontent.com/u/1210593?v=3","gravatar_id":"","url":"https://api.github.com/users/gadventures","html_url":"https://github.com/gadventures","followers_url":"https://api.github.com/users/gadventures/followers","following_url":"https://api.github.com/users/gadventures/following{/other_user}","gists_url":"https://api.github.com/users/gadventures/gists{/gist_id}","starred_url":"https://api.github.com/users/gadventures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gadventures/subscriptions","organizations_url":"https://api.github.com/users/gadventures/orgs","repos_url":"https://api.github.com/users/gadventures/repos","events_url":"https://api.github.com/users/gadventures/events{/privacy}","received_events_url":"https://api.github.com/users/gadventures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gadventures/gapipy","description":"Python client for the G Adventures REST API (https://developers.gadventures.com)","fork":false,"url":"https://api.github.com/repos/gadventures/gapipy","forks_url":"https://api.github.com/repos/gadventures/gapipy/forks","keys_url":"https://api.github.com/repos/gadventures/gapipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gadventures/gapipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gadventures/gapipy/teams","hooks_url":"https://api.github.com/repos/gadventures/gapipy/hooks","issue_events_url":"https://api.github.com/repos/gadventures/gapipy/issues/events{/number}","events_url":"https://api.github.com/repos/gadventures/gapipy/events","assignees_url":"https://api.github.com/repos/gadventures/gapipy/assignees{/user}","branches_url":"https://api.github.com/repos/gadventures/gapipy/branches{/branch}","tags_url":"https://api.github.com/repos/gadventures/gapipy/tags","blobs_url":"https://api.github.com/repos/gadventures/gapipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gadventures/gapipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gadventures/gapipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/gadventures/gapipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gadventures/gapipy/statuses/{sha}","languages_url":"https://api.github.com/repos/gadventures/gapipy/languages","stargazers_url":"https://api.github.com/repos/gadventures/gapipy/stargazers","contributors_url":"https://api.github.com/repos/gadventures/gapipy/contributors","subscribers_url":"https://api.github.com/repos/gadventures/gapipy/subscribers","subscription_url":"https://api.github.com/repos/gadventures/gapipy/subscription","commits_url":"https://api.github.com/repos/gadventures/gapipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/gadventures/gapipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/gadventures/gapipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/gadventures/gapipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/gadventures/gapipy/contents/{+path}","compare_url":"https://api.github.com/repos/gadventures/gapipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gadventures/gapipy/merges","archive_url":"https://api.github.com/repos/gadventures/gapipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gadventures/gapipy/downloads","issues_url":"https://api.github.com/repos/gadventures/gapipy/issues{/number}","pulls_url":"https://api.github.com/repos/gadventures/gapipy/pulls{/number}","milestones_url":"https://api.github.com/repos/gadventures/gapipy/milestones{/number}","notifications_url":"https://api.github.com/repos/gadventures/gapipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gadventures/gapipy/labels{/name}","releases_url":"https://api.github.com/repos/gadventures/gapipy/releases{/id}","created_at":"2014-06-13T19:50:18Z","updated_at":"2015-03-02T20:41:47Z","pushed_at":"2015-03-11T20:16:19Z","git_url":"git://github.com/gadventures/gapipy.git","ssh_url":"git@github.com:gadventures/gapipy.git","clone_url":"https://github.com/gadventures/gapipy.git","svn_url":"https://github.com/gadventures/gapipy","homepage":null,"size":608,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"gadventures:master","ref":"master","sha":"a6f7337e87a45adff1cd7167d1b0bbaefddb5bb4","user":{"login":"gadventures","id":1210593,"avatar_url":"https://avatars.githubusercontent.com/u/1210593?v=3","gravatar_id":"","url":"https://api.github.com/users/gadventures","html_url":"https://github.com/gadventures","followers_url":"https://api.github.com/users/gadventures/followers","following_url":"https://api.github.com/users/gadventures/following{/other_user}","gists_url":"https://api.github.com/users/gadventures/gists{/gist_id}","starred_url":"https://api.github.com/users/gadventures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gadventures/subscriptions","organizations_url":"https://api.github.com/users/gadventures/orgs","repos_url":"https://api.github.com/users/gadventures/repos","events_url":"https://api.github.com/users/gadventures/events{/privacy}","received_events_url":"https://api.github.com/users/gadventures/received_events","type":"Organization","site_admin":false},"repo":{"id":20815950,"name":"gapipy","full_name":"gadventures/gapipy","owner":{"login":"gadventures","id":1210593,"avatar_url":"https://avatars.githubusercontent.com/u/1210593?v=3","gravatar_id":"","url":"https://api.github.com/users/gadventures","html_url":"https://github.com/gadventures","followers_url":"https://api.github.com/users/gadventures/followers","following_url":"https://api.github.com/users/gadventures/following{/other_user}","gists_url":"https://api.github.com/users/gadventures/gists{/gist_id}","starred_url":"https://api.github.com/users/gadventures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gadventures/subscriptions","organizations_url":"https://api.github.com/users/gadventures/orgs","repos_url":"https://api.github.com/users/gadventures/repos","events_url":"https://api.github.com/users/gadventures/events{/privacy}","received_events_url":"https://api.github.com/users/gadventures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gadventures/gapipy","description":"Python client for the G Adventures REST API (https://developers.gadventures.com)","fork":false,"url":"https://api.github.com/repos/gadventures/gapipy","forks_url":"https://api.github.com/repos/gadventures/gapipy/forks","keys_url":"https://api.github.com/repos/gadventures/gapipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gadventures/gapipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gadventures/gapipy/teams","hooks_url":"https://api.github.com/repos/gadventures/gapipy/hooks","issue_events_url":"https://api.github.com/repos/gadventures/gapipy/issues/events{/number}","events_url":"https://api.github.com/repos/gadventures/gapipy/events","assignees_url":"https://api.github.com/repos/gadventures/gapipy/assignees{/user}","branches_url":"https://api.github.com/repos/gadventures/gapipy/branches{/branch}","tags_url":"https://api.github.com/repos/gadventures/gapipy/tags","blobs_url":"https://api.github.com/repos/gadventures/gapipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gadventures/gapipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gadventures/gapipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/gadventures/gapipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gadventures/gapipy/statuses/{sha}","languages_url":"https://api.github.com/repos/gadventures/gapipy/languages","stargazers_url":"https://api.github.com/repos/gadventures/gapipy/stargazers","contributors_url":"https://api.github.com/repos/gadventures/gapipy/contributors","subscribers_url":"https://api.github.com/repos/gadventures/gapipy/subscribers","subscription_url":"https://api.github.com/repos/gadventures/gapipy/subscription","commits_url":"https://api.github.com/repos/gadventures/gapipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/gadventures/gapipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/gadventures/gapipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/gadventures/gapipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/gadventures/gapipy/contents/{+path}","compare_url":"https://api.github.com/repos/gadventures/gapipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gadventures/gapipy/merges","archive_url":"https://api.github.com/repos/gadventures/gapipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gadventures/gapipy/downloads","issues_url":"https://api.github.com/repos/gadventures/gapipy/issues{/number}","pulls_url":"https://api.github.com/repos/gadventures/gapipy/pulls{/number}","milestones_url":"https://api.github.com/repos/gadventures/gapipy/milestones{/number}","notifications_url":"https://api.github.com/repos/gadventures/gapipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gadventures/gapipy/labels{/name}","releases_url":"https://api.github.com/repos/gadventures/gapipy/releases{/id}","created_at":"2014-06-13T19:50:18Z","updated_at":"2015-03-02T20:41:47Z","pushed_at":"2015-03-11T20:16:19Z","git_url":"git://github.com/gadventures/gapipy.git","ssh_url":"git@github.com:gadventures/gapipy.git","clone_url":"https://github.com/gadventures/gapipy.git","svn_url":"https://github.com/gadventures/gapipy","homepage":null,"size":608,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gadventures/gapipy/pulls/7"},"html":{"href":"https://github.com/gadventures/gapipy/pull/7"},"issue":{"href":"https://api.github.com/repos/gadventures/gapipy/issues/7"},"comments":{"href":"https://api.github.com/repos/gadventures/gapipy/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/gadventures/gapipy/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/gadventures/gapipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gadventures/gapipy/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/gadventures/gapipy/statuses/fa5fdda96d6f388b39571ee6ed43a233d3756900"}}}}