{"action":"created","comment":{"url":"https://api.github.com/repos/zendesk/biz/pulls/comments/35807424","id":35807424,"diff_hunk":"@@ -3,6 +3,7 @@ module Calculation\n   end\n end\n \n-require 'biz/calculation/for_duration'\n-require 'biz/calculation/duration_within'\n require 'biz/calculation/active'\n+require 'biz/calculation/duration_within'\n+require 'biz/calculation/for_duration'\n+require 'biz/calculation/on_holiday'","path":"lib/biz/calculation.rb","position":9,"original_position":9,"commit_id":"0a1b1fcc545cc6728337beb98818a2be11aed000","original_commit_id":"0a1b1fcc545cc6728337beb98818a2be11aed000","user":{"login":"joshlam","id":5393387,"avatar_url":"https://avatars.githubusercontent.com/u/5393387?v=3","gravatar_id":"","url":"https://api.github.com/users/joshlam","html_url":"https://github.com/joshlam","followers_url":"https://api.github.com/users/joshlam/followers","following_url":"https://api.github.com/users/joshlam/following{/other_user}","gists_url":"https://api.github.com/users/joshlam/gists{/gist_id}","starred_url":"https://api.github.com/users/joshlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshlam/subscriptions","organizations_url":"https://api.github.com/users/joshlam/orgs","repos_url":"https://api.github.com/users/joshlam/repos","events_url":"https://api.github.com/users/joshlam/events{/privacy}","received_events_url":"https://api.github.com/users/joshlam/received_events","type":"User","site_admin":false},"body":"abcs yo","created_at":"2015-07-29T20:26:21Z","updated_at":"2015-07-29T20:26:21Z","html_url":"https://github.com/zendesk/biz/pull/29#discussion_r35807424","pull_request_url":"https://api.github.com/repos/zendesk/biz/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/zendesk/biz/pulls/comments/35807424"},"html":{"href":"https://github.com/zendesk/biz/pull/29#discussion_r35807424"},"pull_request":{"href":"https://api.github.com/repos/zendesk/biz/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/zendesk/biz/pulls/29","id":41165058,"html_url":"https://github.com/zendesk/biz/pull/29","diff_url":"https://github.com/zendesk/biz/pull/29.diff","patch_url":"https://github.com/zendesk/biz/pull/29.patch","issue_url":"https://api.github.com/repos/zendesk/biz/issues/29","number":29,"state":"open","locked":false,"title":"Add #on_holiday? method to check if time on holiday","user":{"login":"craiglittle","id":762635,"avatar_url":"https://avatars.githubusercontent.com/u/762635?v=3","gravatar_id":"","url":"https://api.github.com/users/craiglittle","html_url":"https://github.com/craiglittle","followers_url":"https://api.github.com/users/craiglittle/followers","following_url":"https://api.github.com/users/craiglittle/following{/other_user}","gists_url":"https://api.github.com/users/craiglittle/gists{/gist_id}","starred_url":"https://api.github.com/users/craiglittle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craiglittle/subscriptions","organizations_url":"https://api.github.com/users/craiglittle/orgs","repos_url":"https://api.github.com/users/craiglittle/repos","events_url":"https://api.github.com/users/craiglittle/events{/privacy}","received_events_url":"https://api.github.com/users/craiglittle/received_events","type":"User","site_admin":false},"body":"When passed a time, the method will return a Boolean response depending on whether the time occurs on a configured holiday or not.\r\n\r\n@alex-stone @kruppel @joshlam ","created_at":"2015-07-29T19:57:13Z","updated_at":"2015-07-29T20:26:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63a0a729a6055f905a9fe773cb39a225ef50610d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/biz/pulls/29/commits","review_comments_url":"https://api.github.com/repos/zendesk/biz/pulls/29/comments","review_comment_url":"https://api.github.com/repos/zendesk/biz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/biz/issues/29/comments","statuses_url":"https://api.github.com/repos/zendesk/biz/statuses/0a1b1fcc545cc6728337beb98818a2be11aed000","head":{"label":"zendesk:craig/on-holiday","ref":"craig/on-holiday","sha":"0a1b1fcc545cc6728337beb98818a2be11aed000","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":30934073,"name":"biz","full_name":"zendesk/biz","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/biz","description":"Time calculations using business hours.","fork":false,"url":"https://api.github.com/repos/zendesk/biz","forks_url":"https://api.github.com/repos/zendesk/biz/forks","keys_url":"https://api.github.com/repos/zendesk/biz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/biz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/biz/teams","hooks_url":"https://api.github.com/repos/zendesk/biz/hooks","issue_events_url":"https://api.github.com/repos/zendesk/biz/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/biz/events","assignees_url":"https://api.github.com/repos/zendesk/biz/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/biz/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/biz/tags","blobs_url":"https://api.github.com/repos/zendesk/biz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/biz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/biz/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/biz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/biz/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/biz/languages","stargazers_url":"https://api.github.com/repos/zendesk/biz/stargazers","contributors_url":"https://api.github.com/repos/zendesk/biz/contributors","subscribers_url":"https://api.github.com/repos/zendesk/biz/subscribers","subscription_url":"https://api.github.com/repos/zendesk/biz/subscription","commits_url":"https://api.github.com/repos/zendesk/biz/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/biz/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/biz/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/biz/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/biz/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/biz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/biz/merges","archive_url":"https://api.github.com/repos/zendesk/biz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/biz/downloads","issues_url":"https://api.github.com/repos/zendesk/biz/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/biz/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/biz/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/biz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/biz/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/biz/releases{/id}","created_at":"2015-02-17T19:41:30Z","updated_at":"2015-07-26T22:32:18Z","pushed_at":"2015-07-29T19:57:13Z","git_url":"git://github.com/zendesk/biz.git","ssh_url":"git@github.com:zendesk/biz.git","clone_url":"https://github.com/zendesk/biz.git","svn_url":"https://github.com/zendesk/biz","homepage":null,"size":568,"stargazers_count":212,"watchers_count":212,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":212,"default_branch":"master"}},"base":{"label":"zendesk:master","ref":"master","sha":"01871d49d3dc5a6513f26abbffa7498e62be2df6","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":30934073,"name":"biz","full_name":"zendesk/biz","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/biz","description":"Time calculations using business hours.","fork":false,"url":"https://api.github.com/repos/zendesk/biz","forks_url":"https://api.github.com/repos/zendesk/biz/forks","keys_url":"https://api.github.com/repos/zendesk/biz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/biz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/biz/teams","hooks_url":"https://api.github.com/repos/zendesk/biz/hooks","issue_events_url":"https://api.github.com/repos/zendesk/biz/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/biz/events","assignees_url":"https://api.github.com/repos/zendesk/biz/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/biz/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/biz/tags","blobs_url":"https://api.github.com/repos/zendesk/biz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/biz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/biz/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/biz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/biz/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/biz/languages","stargazers_url":"https://api.github.com/repos/zendesk/biz/stargazers","contributors_url":"https://api.github.com/repos/zendesk/biz/contributors","subscribers_url":"https://api.github.com/repos/zendesk/biz/subscribers","subscription_url":"https://api.github.com/repos/zendesk/biz/subscription","commits_url":"https://api.github.com/repos/zendesk/biz/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/biz/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/biz/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/biz/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/biz/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/biz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/biz/merges","archive_url":"https://api.github.com/repos/zendesk/biz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/biz/downloads","issues_url":"https://api.github.com/repos/zendesk/biz/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/biz/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/biz/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/biz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/biz/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/biz/releases{/id}","created_at":"2015-02-17T19:41:30Z","updated_at":"2015-07-26T22:32:18Z","pushed_at":"2015-07-29T19:57:13Z","git_url":"git://github.com/zendesk/biz.git","ssh_url":"git@github.com:zendesk/biz.git","clone_url":"https://github.com/zendesk/biz.git","svn_url":"https://github.com/zendesk/biz","homepage":null,"size":568,"stargazers_count":212,"watchers_count":212,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":212,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/biz/pulls/29"},"html":{"href":"https://github.com/zendesk/biz/pull/29"},"issue":{"href":"https://api.github.com/repos/zendesk/biz/issues/29"},"comments":{"href":"https://api.github.com/repos/zendesk/biz/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/biz/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/biz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/biz/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/biz/statuses/0a1b1fcc545cc6728337beb98818a2be11aed000"}}}}