{"action":"created","comment":{"url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/comments/45545137","id":45545137,"diff_hunk":"@@ -0,0 +1,11 @@\n+class ApiConstraints\n+  def initialize(options)\n+    @version = options[:version]\n+    @default = options[:default]\n+  end\n+\n+  def matches?(req)\n+    @default || req.headers[\"Accept\"].\n+    include?(\"application/vnd.ladyb_bucketlist.v#{@version}\")","path":"lib/api_constraints.rb","position":9,"original_position":9,"commit_id":"5ddd9eab2adc7f11ee64ec54432557617617da77","original_commit_id":"5ddd9eab2adc7f11ee64ec54432557617617da77","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Use 2 (not 0) spaces for indenting an expression spanning multiple lines.","created_at":"2015-11-21T11:43:45Z","updated_at":"2015-11-21T11:43:45Z","html_url":"https://github.com/andela-bebowe/ladyb_bucketlist/pull/1#discussion_r45545137","pull_request_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/comments/45545137"},"html":{"href":"https://github.com/andela-bebowe/ladyb_bucketlist/pull/1#discussion_r45545137"},"pull_request":{"href":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/1","id":51439754,"html_url":"https://github.com/andela-bebowe/ladyb_bucketlist/pull/1","diff_url":"https://github.com/andela-bebowe/ladyb_bucketlist/pull/1.diff","patch_url":"https://github.com/andela-bebowe/ladyb_bucketlist/pull/1.patch","issue_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/issues/1","number":1,"state":"open","locked":false,"title":"Access API resource","user":{"login":"andela-bebowe","id":10234875,"avatar_url":"https://avatars.githubusercontent.com/u/10234875?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bebowe","html_url":"https://github.com/andela-bebowe","followers_url":"https://api.github.com/users/andela-bebowe/followers","following_url":"https://api.github.com/users/andela-bebowe/following{/other_user}","gists_url":"https://api.github.com/users/andela-bebowe/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bebowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bebowe/subscriptions","organizations_url":"https://api.github.com/users/andela-bebowe/orgs","repos_url":"https://api.github.com/users/andela-bebowe/repos","events_url":"https://api.github.com/users/andela-bebowe/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bebowe/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-21T11:43:36Z","updated_at":"2015-11-21T11:43:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab69567b73e5121cc7bc1d94354226e59496b0bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/1/commits","review_comments_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/1/comments","review_comment_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/issues/1/comments","statuses_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/statuses/5ddd9eab2adc7f11ee64ec54432557617617da77","head":{"label":"andela-bebowe:accessing_api_resource","ref":"accessing_api_resource","sha":"5ddd9eab2adc7f11ee64ec54432557617617da77","user":{"login":"andela-bebowe","id":10234875,"avatar_url":"https://avatars.githubusercontent.com/u/10234875?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bebowe","html_url":"https://github.com/andela-bebowe","followers_url":"https://api.github.com/users/andela-bebowe/followers","following_url":"https://api.github.com/users/andela-bebowe/following{/other_user}","gists_url":"https://api.github.com/users/andela-bebowe/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bebowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bebowe/subscriptions","organizations_url":"https://api.github.com/users/andela-bebowe/orgs","repos_url":"https://api.github.com/users/andela-bebowe/repos","events_url":"https://api.github.com/users/andela-bebowe/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bebowe/received_events","type":"User","site_admin":false},"repo":{"id":46414499,"name":"ladyb_bucketlist","full_name":"andela-bebowe/ladyb_bucketlist","owner":{"login":"andela-bebowe","id":10234875,"avatar_url":"https://avatars.githubusercontent.com/u/10234875?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bebowe","html_url":"https://github.com/andela-bebowe","followers_url":"https://api.github.com/users/andela-bebowe/followers","following_url":"https://api.github.com/users/andela-bebowe/following{/other_user}","gists_url":"https://api.github.com/users/andela-bebowe/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bebowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bebowe/subscriptions","organizations_url":"https://api.github.com/users/andela-bebowe/orgs","repos_url":"https://api.github.com/users/andela-bebowe/repos","events_url":"https://api.github.com/users/andela-bebowe/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bebowe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-bebowe/ladyb_bucketlist","description":"","fork":false,"url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist","forks_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/forks","keys_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/teams","hooks_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/hooks","issue_events_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/issues/events{/number}","events_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/events","assignees_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/assignees{/user}","branches_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/branches{/branch}","tags_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/tags","blobs_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/languages","stargazers_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/stargazers","contributors_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/contributors","subscribers_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/subscribers","subscription_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/subscription","commits_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/contents/{+path}","compare_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/merges","archive_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/downloads","issues_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/issues{/number}","pulls_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/labels{/name}","releases_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/releases{/id}","created_at":"2015-11-18T11:29:52Z","updated_at":"2015-11-18T11:29:52Z","pushed_at":"2015-11-21T11:43:37Z","git_url":"git://github.com/andela-bebowe/ladyb_bucketlist.git","ssh_url":"git@github.com:andela-bebowe/ladyb_bucketlist.git","clone_url":"https://github.com/andela-bebowe/ladyb_bucketlist.git","svn_url":"https://github.com/andela-bebowe/ladyb_bucketlist","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"andela-bebowe:master","ref":"master","sha":"856c6ab6510848ffc21bc8f2be1a194ad1b47cb3","user":{"login":"andela-bebowe","id":10234875,"avatar_url":"https://avatars.githubusercontent.com/u/10234875?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bebowe","html_url":"https://github.com/andela-bebowe","followers_url":"https://api.github.com/users/andela-bebowe/followers","following_url":"https://api.github.com/users/andela-bebowe/following{/other_user}","gists_url":"https://api.github.com/users/andela-bebowe/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bebowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bebowe/subscriptions","organizations_url":"https://api.github.com/users/andela-bebowe/orgs","repos_url":"https://api.github.com/users/andela-bebowe/repos","events_url":"https://api.github.com/users/andela-bebowe/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bebowe/received_events","type":"User","site_admin":false},"repo":{"id":46414499,"name":"ladyb_bucketlist","full_name":"andela-bebowe/ladyb_bucketlist","owner":{"login":"andela-bebowe","id":10234875,"avatar_url":"https://avatars.githubusercontent.com/u/10234875?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bebowe","html_url":"https://github.com/andela-bebowe","followers_url":"https://api.github.com/users/andela-bebowe/followers","following_url":"https://api.github.com/users/andela-bebowe/following{/other_user}","gists_url":"https://api.github.com/users/andela-bebowe/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bebowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bebowe/subscriptions","organizations_url":"https://api.github.com/users/andela-bebowe/orgs","repos_url":"https://api.github.com/users/andela-bebowe/repos","events_url":"https://api.github.com/users/andela-bebowe/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bebowe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-bebowe/ladyb_bucketlist","description":"","fork":false,"url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist","forks_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/forks","keys_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/teams","hooks_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/hooks","issue_events_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/issues/events{/number}","events_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/events","assignees_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/assignees{/user}","branches_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/branches{/branch}","tags_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/tags","blobs_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/languages","stargazers_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/stargazers","contributors_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/contributors","subscribers_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/subscribers","subscription_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/subscription","commits_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/contents/{+path}","compare_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/merges","archive_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/downloads","issues_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/issues{/number}","pulls_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/labels{/name}","releases_url":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/releases{/id}","created_at":"2015-11-18T11:29:52Z","updated_at":"2015-11-18T11:29:52Z","pushed_at":"2015-11-21T11:43:37Z","git_url":"git://github.com/andela-bebowe/ladyb_bucketlist.git","ssh_url":"git@github.com:andela-bebowe/ladyb_bucketlist.git","clone_url":"https://github.com/andela-bebowe/ladyb_bucketlist.git","svn_url":"https://github.com/andela-bebowe/ladyb_bucketlist","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/1"},"html":{"href":"https://github.com/andela-bebowe/ladyb_bucketlist/pull/1"},"issue":{"href":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/issues/1"},"comments":{"href":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/andela-bebowe/ladyb_bucketlist/statuses/5ddd9eab2adc7f11ee64ec54432557617617da77"}}}}