{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/yukiasai/Kagee/pulls/3","id":61699189,"html_url":"https://github.com/yukiasai/Kagee/pull/3","diff_url":"https://github.com/yukiasai/Kagee/pull/3.diff","patch_url":"https://github.com/yukiasai/Kagee/pull/3.patch","issue_url":"https://api.github.com/repos/yukiasai/Kagee/issues/3","number":3,"state":"closed","locked":false,"title":"Improve `File` class initialzer with `URLConvertible`.","user":{"login":"sgr-ksmt","id":9350581,"avatar_url":"https://avatars.githubusercontent.com/u/9350581?v=3","gravatar_id":"","url":"https://api.github.com/users/sgr-ksmt","html_url":"https://github.com/sgr-ksmt","followers_url":"https://api.github.com/users/sgr-ksmt/followers","following_url":"https://api.github.com/users/sgr-ksmt/following{/other_user}","gists_url":"https://api.github.com/users/sgr-ksmt/gists{/gist_id}","starred_url":"https://api.github.com/users/sgr-ksmt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgr-ksmt/subscriptions","organizations_url":"https://api.github.com/users/sgr-ksmt/orgs","repos_url":"https://api.github.com/users/sgr-ksmt/repos","events_url":"https://api.github.com/users/sgr-ksmt/events{/privacy}","received_events_url":"https://api.github.com/users/sgr-ksmt/received_events","type":"User","site_admin":false},"body":"If you think that `PatternA` is better than `PatternB(current)`, I fix so and push commit once again!\r\n\r\n- `PatternA`\r\n\r\n```swift\r\npublic class File: Body {\r\n    let url: NSURL\r\n    \r\n    public init(_ urlConvertible: URLConvertible) {\r\n        self.url = urlConvertible.URL\r\n    }\r\n}\r\n\r\n// e.g.\r\nlet fileUrl = ...\r\nFile(fileUrl)\r\n```\r\n\r\n- `PatternB(current)`\r\n\r\n```swift\r\npublic class File: Body {\r\n    let url: NSURL\r\n    \r\n    public init(url urlConvertible: URLConvertible) {\r\n        self.url = urlConvertible.URL\r\n    }\r\n}\r\n\r\n// e.g.\r\nlet fileUrl = ...\r\nFile(url: fileUrl)\r\n```","created_at":"2016-03-04T11:22:03Z","updated_at":"2016-03-07T04:39:53Z","closed_at":"2016-03-07T04:39:53Z","merged_at":"2016-03-07T04:39:53Z","merge_commit_sha":"866de96545a4ddabec2c60b70e07aa0ea0415bcf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yukiasai/Kagee/pulls/3/commits","review_comments_url":"https://api.github.com/repos/yukiasai/Kagee/pulls/3/comments","review_comment_url":"https://api.github.com/repos/yukiasai/Kagee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yukiasai/Kagee/issues/3/comments","statuses_url":"https://api.github.com/repos/yukiasai/Kagee/statuses/75aed8b4a3658c4c1a2d7ca25eda006d767bc003","head":{"label":"sgr-ksmt:feature/improve_file_class","ref":"feature/improve_file_class","sha":"75aed8b4a3658c4c1a2d7ca25eda006d767bc003","user":{"login":"sgr-ksmt","id":9350581,"avatar_url":"https://avatars.githubusercontent.com/u/9350581?v=3","gravatar_id":"","url":"https://api.github.com/users/sgr-ksmt","html_url":"https://github.com/sgr-ksmt","followers_url":"https://api.github.com/users/sgr-ksmt/followers","following_url":"https://api.github.com/users/sgr-ksmt/following{/other_user}","gists_url":"https://api.github.com/users/sgr-ksmt/gists{/gist_id}","starred_url":"https://api.github.com/users/sgr-ksmt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgr-ksmt/subscriptions","organizations_url":"https://api.github.com/users/sgr-ksmt/orgs","repos_url":"https://api.github.com/users/sgr-ksmt/repos","events_url":"https://api.github.com/users/sgr-ksmt/events{/privacy}","received_events_url":"https://api.github.com/users/sgr-ksmt/received_events","type":"User","site_admin":false},"repo":{"id":53061472,"name":"Kagee","full_name":"sgr-ksmt/Kagee","owner":{"login":"sgr-ksmt","id":9350581,"avatar_url":"https://avatars.githubusercontent.com/u/9350581?v=3","gravatar_id":"","url":"https://api.github.com/users/sgr-ksmt","html_url":"https://github.com/sgr-ksmt","followers_url":"https://api.github.com/users/sgr-ksmt/followers","following_url":"https://api.github.com/users/sgr-ksmt/following{/other_user}","gists_url":"https://api.github.com/users/sgr-ksmt/gists{/gist_id}","starred_url":"https://api.github.com/users/sgr-ksmt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgr-ksmt/subscriptions","organizations_url":"https://api.github.com/users/sgr-ksmt/orgs","repos_url":"https://api.github.com/users/sgr-ksmt/repos","events_url":"https://api.github.com/users/sgr-ksmt/events{/privacy}","received_events_url":"https://api.github.com/users/sgr-ksmt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sgr-ksmt/Kagee","description":"Easily way to write a stub for the network request","fork":true,"url":"https://api.github.com/repos/sgr-ksmt/Kagee","forks_url":"https://api.github.com/repos/sgr-ksmt/Kagee/forks","keys_url":"https://api.github.com/repos/sgr-ksmt/Kagee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgr-ksmt/Kagee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgr-ksmt/Kagee/teams","hooks_url":"https://api.github.com/repos/sgr-ksmt/Kagee/hooks","issue_events_url":"https://api.github.com/repos/sgr-ksmt/Kagee/issues/events{/number}","events_url":"https://api.github.com/repos/sgr-ksmt/Kagee/events","assignees_url":"https://api.github.com/repos/sgr-ksmt/Kagee/assignees{/user}","branches_url":"https://api.github.com/repos/sgr-ksmt/Kagee/branches{/branch}","tags_url":"https://api.github.com/repos/sgr-ksmt/Kagee/tags","blobs_url":"https://api.github.com/repos/sgr-ksmt/Kagee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgr-ksmt/Kagee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgr-ksmt/Kagee/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgr-ksmt/Kagee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgr-ksmt/Kagee/statuses/{sha}","languages_url":"https://api.github.com/repos/sgr-ksmt/Kagee/languages","stargazers_url":"https://api.github.com/repos/sgr-ksmt/Kagee/stargazers","contributors_url":"https://api.github.com/repos/sgr-ksmt/Kagee/contributors","subscribers_url":"https://api.github.com/repos/sgr-ksmt/Kagee/subscribers","subscription_url":"https://api.github.com/repos/sgr-ksmt/Kagee/subscription","commits_url":"https://api.github.com/repos/sgr-ksmt/Kagee/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgr-ksmt/Kagee/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgr-ksmt/Kagee/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgr-ksmt/Kagee/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgr-ksmt/Kagee/contents/{+path}","compare_url":"https://api.github.com/repos/sgr-ksmt/Kagee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgr-ksmt/Kagee/merges","archive_url":"https://api.github.com/repos/sgr-ksmt/Kagee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgr-ksmt/Kagee/downloads","issues_url":"https://api.github.com/repos/sgr-ksmt/Kagee/issues{/number}","pulls_url":"https://api.github.com/repos/sgr-ksmt/Kagee/pulls{/number}","milestones_url":"https://api.github.com/repos/sgr-ksmt/Kagee/milestones{/number}","notifications_url":"https://api.github.com/repos/sgr-ksmt/Kagee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgr-ksmt/Kagee/labels{/name}","releases_url":"https://api.github.com/repos/sgr-ksmt/Kagee/releases{/id}","deployments_url":"https://api.github.com/repos/sgr-ksmt/Kagee/deployments","created_at":"2016-03-03T15:30:09Z","updated_at":"2016-03-03T15:30:10Z","pushed_at":"2016-03-04T11:16:12Z","git_url":"git://github.com/sgr-ksmt/Kagee.git","ssh_url":"git@github.com:sgr-ksmt/Kagee.git","clone_url":"https://github.com/sgr-ksmt/Kagee.git","svn_url":"https://github.com/sgr-ksmt/Kagee","homepage":"","size":44,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yukiasai:master","ref":"master","sha":"92ba286e785357ba6c3d958326ffefaf58962df3","user":{"login":"yukiasai","id":6880730,"avatar_url":"https://avatars.githubusercontent.com/u/6880730?v=3","gravatar_id":"","url":"https://api.github.com/users/yukiasai","html_url":"https://github.com/yukiasai","followers_url":"https://api.github.com/users/yukiasai/followers","following_url":"https://api.github.com/users/yukiasai/following{/other_user}","gists_url":"https://api.github.com/users/yukiasai/gists{/gist_id}","starred_url":"https://api.github.com/users/yukiasai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yukiasai/subscriptions","organizations_url":"https://api.github.com/users/yukiasai/orgs","repos_url":"https://api.github.com/users/yukiasai/repos","events_url":"https://api.github.com/users/yukiasai/events{/privacy}","received_events_url":"https://api.github.com/users/yukiasai/received_events","type":"User","site_admin":false},"repo":{"id":50192310,"name":"Kagee","full_name":"yukiasai/Kagee","owner":{"login":"yukiasai","id":6880730,"avatar_url":"https://avatars.githubusercontent.com/u/6880730?v=3","gravatar_id":"","url":"https://api.github.com/users/yukiasai","html_url":"https://github.com/yukiasai","followers_url":"https://api.github.com/users/yukiasai/followers","following_url":"https://api.github.com/users/yukiasai/following{/other_user}","gists_url":"https://api.github.com/users/yukiasai/gists{/gist_id}","starred_url":"https://api.github.com/users/yukiasai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yukiasai/subscriptions","organizations_url":"https://api.github.com/users/yukiasai/orgs","repos_url":"https://api.github.com/users/yukiasai/repos","events_url":"https://api.github.com/users/yukiasai/events{/privacy}","received_events_url":"https://api.github.com/users/yukiasai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yukiasai/Kagee","description":"Easily way to write a stub for the network request","fork":false,"url":"https://api.github.com/repos/yukiasai/Kagee","forks_url":"https://api.github.com/repos/yukiasai/Kagee/forks","keys_url":"https://api.github.com/repos/yukiasai/Kagee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yukiasai/Kagee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yukiasai/Kagee/teams","hooks_url":"https://api.github.com/repos/yukiasai/Kagee/hooks","issue_events_url":"https://api.github.com/repos/yukiasai/Kagee/issues/events{/number}","events_url":"https://api.github.com/repos/yukiasai/Kagee/events","assignees_url":"https://api.github.com/repos/yukiasai/Kagee/assignees{/user}","branches_url":"https://api.github.com/repos/yukiasai/Kagee/branches{/branch}","tags_url":"https://api.github.com/repos/yukiasai/Kagee/tags","blobs_url":"https://api.github.com/repos/yukiasai/Kagee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yukiasai/Kagee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yukiasai/Kagee/git/refs{/sha}","trees_url":"https://api.github.com/repos/yukiasai/Kagee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yukiasai/Kagee/statuses/{sha}","languages_url":"https://api.github.com/repos/yukiasai/Kagee/languages","stargazers_url":"https://api.github.com/repos/yukiasai/Kagee/stargazers","contributors_url":"https://api.github.com/repos/yukiasai/Kagee/contributors","subscribers_url":"https://api.github.com/repos/yukiasai/Kagee/subscribers","subscription_url":"https://api.github.com/repos/yukiasai/Kagee/subscription","commits_url":"https://api.github.com/repos/yukiasai/Kagee/commits{/sha}","git_commits_url":"https://api.github.com/repos/yukiasai/Kagee/git/commits{/sha}","comments_url":"https://api.github.com/repos/yukiasai/Kagee/comments{/number}","issue_comment_url":"https://api.github.com/repos/yukiasai/Kagee/issues/comments{/number}","contents_url":"https://api.github.com/repos/yukiasai/Kagee/contents/{+path}","compare_url":"https://api.github.com/repos/yukiasai/Kagee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yukiasai/Kagee/merges","archive_url":"https://api.github.com/repos/yukiasai/Kagee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yukiasai/Kagee/downloads","issues_url":"https://api.github.com/repos/yukiasai/Kagee/issues{/number}","pulls_url":"https://api.github.com/repos/yukiasai/Kagee/pulls{/number}","milestones_url":"https://api.github.com/repos/yukiasai/Kagee/milestones{/number}","notifications_url":"https://api.github.com/repos/yukiasai/Kagee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yukiasai/Kagee/labels{/name}","releases_url":"https://api.github.com/repos/yukiasai/Kagee/releases{/id}","deployments_url":"https://api.github.com/repos/yukiasai/Kagee/deployments","created_at":"2016-01-22T16:16:49Z","updated_at":"2016-03-02T00:17:20Z","pushed_at":"2016-03-07T04:39:53Z","git_url":"git://github.com/yukiasai/Kagee.git","ssh_url":"git@github.com:yukiasai/Kagee.git","clone_url":"https://github.com/yukiasai/Kagee.git","svn_url":"https://github.com/yukiasai/Kagee","homepage":"","size":43,"stargazers_count":21,"watchers_count":21,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yukiasai/Kagee/pulls/3"},"html":{"href":"https://github.com/yukiasai/Kagee/pull/3"},"issue":{"href":"https://api.github.com/repos/yukiasai/Kagee/issues/3"},"comments":{"href":"https://api.github.com/repos/yukiasai/Kagee/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/yukiasai/Kagee/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/yukiasai/Kagee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yukiasai/Kagee/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/yukiasai/Kagee/statuses/75aed8b4a3658c4c1a2d7ca25eda006d767bc003"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"yukiasai","id":6880730,"avatar_url":"https://avatars.githubusercontent.com/u/6880730?v=3","gravatar_id":"","url":"https://api.github.com/users/yukiasai","html_url":"https://github.com/yukiasai","followers_url":"https://api.github.com/users/yukiasai/followers","following_url":"https://api.github.com/users/yukiasai/following{/other_user}","gists_url":"https://api.github.com/users/yukiasai/gists{/gist_id}","starred_url":"https://api.github.com/users/yukiasai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yukiasai/subscriptions","organizations_url":"https://api.github.com/users/yukiasai/orgs","repos_url":"https://api.github.com/users/yukiasai/repos","events_url":"https://api.github.com/users/yukiasai/events{/privacy}","received_events_url":"https://api.github.com/users/yukiasai/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":4,"deletions":10,"changed_files":3}}