{"action":"created","comment":{"url":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/comments/41050856","id":41050856,"diff_hunk":"@@ -1,12 +1,27 @@\n require 'traffic_source_parser/result/generic'\n+require 'traffic_source_parser/channels/types/paid'\n \n module TrafficSourceParser\n   module Result\n \n     class Search < TrafficSourceParser::Result::Generic\n \n-      def initialize(search_hash)\n+    PAID_TERM = {\n+      \"Yahoo\" => /search\\?p=/,\n+      \"Google\" => /aclk\\?/,\n+    }\n+\n+      def initialize(search_hash, referrer)","path":"lib/traffic_source_parser/result/search.rb","position":15,"original_position":15,"commit_id":"7657c09cc2cfb7d7e4d55410099284f8551d95ac","original_commit_id":"7657c09cc2cfb7d7e4d55410099284f8551d95ac","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":"Inconsistent indentation detected.","created_at":"2015-10-02T18:16:38Z","updated_at":"2015-10-02T18:16:38Z","html_url":"https://github.com/thiesen/traffic_source_parser/pull/13#discussion_r41050856","pull_request_url":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/comments/41050856"},"html":{"href":"https://github.com/thiesen/traffic_source_parser/pull/13#discussion_r41050856"},"pull_request":{"href":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/13","id":46665327,"html_url":"https://github.com/thiesen/traffic_source_parser/pull/13","diff_url":"https://github.com/thiesen/traffic_source_parser/pull/13.diff","patch_url":"https://github.com/thiesen/traffic_source_parser/pull/13.patch","issue_url":"https://api.github.com/repos/thiesen/traffic_source_parser/issues/13","number":13,"state":"open","locked":false,"title":"first version of paid search detection","user":{"login":"thiesen","id":2743648,"avatar_url":"https://avatars.githubusercontent.com/u/2743648?v=3","gravatar_id":"","url":"https://api.github.com/users/thiesen","html_url":"https://github.com/thiesen","followers_url":"https://api.github.com/users/thiesen/followers","following_url":"https://api.github.com/users/thiesen/following{/other_user}","gists_url":"https://api.github.com/users/thiesen/gists{/gist_id}","starred_url":"https://api.github.com/users/thiesen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiesen/subscriptions","organizations_url":"https://api.github.com/users/thiesen/orgs","repos_url":"https://api.github.com/users/thiesen/repos","events_url":"https://api.github.com/users/thiesen/events{/privacy}","received_events_url":"https://api.github.com/users/thiesen/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-02T18:16:33Z","updated_at":"2015-10-02T18:16:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99c471404bbbd89c18e31679099e09a8785b5ee8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/13/commits","review_comments_url":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/13/comments","review_comment_url":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thiesen/traffic_source_parser/issues/13/comments","statuses_url":"https://api.github.com/repos/thiesen/traffic_source_parser/statuses/7657c09cc2cfb7d7e4d55410099284f8551d95ac","head":{"label":"thiesen:paid-search","ref":"paid-search","sha":"7657c09cc2cfb7d7e4d55410099284f8551d95ac","user":{"login":"thiesen","id":2743648,"avatar_url":"https://avatars.githubusercontent.com/u/2743648?v=3","gravatar_id":"","url":"https://api.github.com/users/thiesen","html_url":"https://github.com/thiesen","followers_url":"https://api.github.com/users/thiesen/followers","following_url":"https://api.github.com/users/thiesen/following{/other_user}","gists_url":"https://api.github.com/users/thiesen/gists{/gist_id}","starred_url":"https://api.github.com/users/thiesen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiesen/subscriptions","organizations_url":"https://api.github.com/users/thiesen/orgs","repos_url":"https://api.github.com/users/thiesen/repos","events_url":"https://api.github.com/users/thiesen/events{/privacy}","received_events_url":"https://api.github.com/users/thiesen/received_events","type":"User","site_admin":false},"repo":{"id":37878461,"name":"traffic_source_parser","full_name":"thiesen/traffic_source_parser","owner":{"login":"thiesen","id":2743648,"avatar_url":"https://avatars.githubusercontent.com/u/2743648?v=3","gravatar_id":"","url":"https://api.github.com/users/thiesen","html_url":"https://github.com/thiesen","followers_url":"https://api.github.com/users/thiesen/followers","following_url":"https://api.github.com/users/thiesen/following{/other_user}","gists_url":"https://api.github.com/users/thiesen/gists{/gist_id}","starred_url":"https://api.github.com/users/thiesen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiesen/subscriptions","organizations_url":"https://api.github.com/users/thiesen/orgs","repos_url":"https://api.github.com/users/thiesen/repos","events_url":"https://api.github.com/users/thiesen/events{/privacy}","received_events_url":"https://api.github.com/users/thiesen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thiesen/traffic_source_parser","description":"Traffic Source Parser for UTM-Alternative","fork":false,"url":"https://api.github.com/repos/thiesen/traffic_source_parser","forks_url":"https://api.github.com/repos/thiesen/traffic_source_parser/forks","keys_url":"https://api.github.com/repos/thiesen/traffic_source_parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thiesen/traffic_source_parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thiesen/traffic_source_parser/teams","hooks_url":"https://api.github.com/repos/thiesen/traffic_source_parser/hooks","issue_events_url":"https://api.github.com/repos/thiesen/traffic_source_parser/issues/events{/number}","events_url":"https://api.github.com/repos/thiesen/traffic_source_parser/events","assignees_url":"https://api.github.com/repos/thiesen/traffic_source_parser/assignees{/user}","branches_url":"https://api.github.com/repos/thiesen/traffic_source_parser/branches{/branch}","tags_url":"https://api.github.com/repos/thiesen/traffic_source_parser/tags","blobs_url":"https://api.github.com/repos/thiesen/traffic_source_parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thiesen/traffic_source_parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thiesen/traffic_source_parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/thiesen/traffic_source_parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thiesen/traffic_source_parser/statuses/{sha}","languages_url":"https://api.github.com/repos/thiesen/traffic_source_parser/languages","stargazers_url":"https://api.github.com/repos/thiesen/traffic_source_parser/stargazers","contributors_url":"https://api.github.com/repos/thiesen/traffic_source_parser/contributors","subscribers_url":"https://api.github.com/repos/thiesen/traffic_source_parser/subscribers","subscription_url":"https://api.github.com/repos/thiesen/traffic_source_parser/subscription","commits_url":"https://api.github.com/repos/thiesen/traffic_source_parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/thiesen/traffic_source_parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/thiesen/traffic_source_parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/thiesen/traffic_source_parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/thiesen/traffic_source_parser/contents/{+path}","compare_url":"https://api.github.com/repos/thiesen/traffic_source_parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thiesen/traffic_source_parser/merges","archive_url":"https://api.github.com/repos/thiesen/traffic_source_parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thiesen/traffic_source_parser/downloads","issues_url":"https://api.github.com/repos/thiesen/traffic_source_parser/issues{/number}","pulls_url":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls{/number}","milestones_url":"https://api.github.com/repos/thiesen/traffic_source_parser/milestones{/number}","notifications_url":"https://api.github.com/repos/thiesen/traffic_source_parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thiesen/traffic_source_parser/labels{/name}","releases_url":"https://api.github.com/repos/thiesen/traffic_source_parser/releases{/id}","created_at":"2015-06-22T20:17:47Z","updated_at":"2015-06-22T20:18:08Z","pushed_at":"2015-10-02T18:16:33Z","git_url":"git://github.com/thiesen/traffic_source_parser.git","ssh_url":"git@github.com:thiesen/traffic_source_parser.git","clone_url":"https://github.com/thiesen/traffic_source_parser.git","svn_url":"https://github.com/thiesen/traffic_source_parser","homepage":null,"size":342,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"thiesen:master","ref":"master","sha":"891cf410964c1a5a4cbd8fe4e2efae6403a3cffe","user":{"login":"thiesen","id":2743648,"avatar_url":"https://avatars.githubusercontent.com/u/2743648?v=3","gravatar_id":"","url":"https://api.github.com/users/thiesen","html_url":"https://github.com/thiesen","followers_url":"https://api.github.com/users/thiesen/followers","following_url":"https://api.github.com/users/thiesen/following{/other_user}","gists_url":"https://api.github.com/users/thiesen/gists{/gist_id}","starred_url":"https://api.github.com/users/thiesen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiesen/subscriptions","organizations_url":"https://api.github.com/users/thiesen/orgs","repos_url":"https://api.github.com/users/thiesen/repos","events_url":"https://api.github.com/users/thiesen/events{/privacy}","received_events_url":"https://api.github.com/users/thiesen/received_events","type":"User","site_admin":false},"repo":{"id":37878461,"name":"traffic_source_parser","full_name":"thiesen/traffic_source_parser","owner":{"login":"thiesen","id":2743648,"avatar_url":"https://avatars.githubusercontent.com/u/2743648?v=3","gravatar_id":"","url":"https://api.github.com/users/thiesen","html_url":"https://github.com/thiesen","followers_url":"https://api.github.com/users/thiesen/followers","following_url":"https://api.github.com/users/thiesen/following{/other_user}","gists_url":"https://api.github.com/users/thiesen/gists{/gist_id}","starred_url":"https://api.github.com/users/thiesen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiesen/subscriptions","organizations_url":"https://api.github.com/users/thiesen/orgs","repos_url":"https://api.github.com/users/thiesen/repos","events_url":"https://api.github.com/users/thiesen/events{/privacy}","received_events_url":"https://api.github.com/users/thiesen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thiesen/traffic_source_parser","description":"Traffic Source Parser for UTM-Alternative","fork":false,"url":"https://api.github.com/repos/thiesen/traffic_source_parser","forks_url":"https://api.github.com/repos/thiesen/traffic_source_parser/forks","keys_url":"https://api.github.com/repos/thiesen/traffic_source_parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thiesen/traffic_source_parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thiesen/traffic_source_parser/teams","hooks_url":"https://api.github.com/repos/thiesen/traffic_source_parser/hooks","issue_events_url":"https://api.github.com/repos/thiesen/traffic_source_parser/issues/events{/number}","events_url":"https://api.github.com/repos/thiesen/traffic_source_parser/events","assignees_url":"https://api.github.com/repos/thiesen/traffic_source_parser/assignees{/user}","branches_url":"https://api.github.com/repos/thiesen/traffic_source_parser/branches{/branch}","tags_url":"https://api.github.com/repos/thiesen/traffic_source_parser/tags","blobs_url":"https://api.github.com/repos/thiesen/traffic_source_parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thiesen/traffic_source_parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thiesen/traffic_source_parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/thiesen/traffic_source_parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thiesen/traffic_source_parser/statuses/{sha}","languages_url":"https://api.github.com/repos/thiesen/traffic_source_parser/languages","stargazers_url":"https://api.github.com/repos/thiesen/traffic_source_parser/stargazers","contributors_url":"https://api.github.com/repos/thiesen/traffic_source_parser/contributors","subscribers_url":"https://api.github.com/repos/thiesen/traffic_source_parser/subscribers","subscription_url":"https://api.github.com/repos/thiesen/traffic_source_parser/subscription","commits_url":"https://api.github.com/repos/thiesen/traffic_source_parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/thiesen/traffic_source_parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/thiesen/traffic_source_parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/thiesen/traffic_source_parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/thiesen/traffic_source_parser/contents/{+path}","compare_url":"https://api.github.com/repos/thiesen/traffic_source_parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thiesen/traffic_source_parser/merges","archive_url":"https://api.github.com/repos/thiesen/traffic_source_parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thiesen/traffic_source_parser/downloads","issues_url":"https://api.github.com/repos/thiesen/traffic_source_parser/issues{/number}","pulls_url":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls{/number}","milestones_url":"https://api.github.com/repos/thiesen/traffic_source_parser/milestones{/number}","notifications_url":"https://api.github.com/repos/thiesen/traffic_source_parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thiesen/traffic_source_parser/labels{/name}","releases_url":"https://api.github.com/repos/thiesen/traffic_source_parser/releases{/id}","created_at":"2015-06-22T20:17:47Z","updated_at":"2015-06-22T20:18:08Z","pushed_at":"2015-10-02T18:16:33Z","git_url":"git://github.com/thiesen/traffic_source_parser.git","ssh_url":"git@github.com:thiesen/traffic_source_parser.git","clone_url":"https://github.com/thiesen/traffic_source_parser.git","svn_url":"https://github.com/thiesen/traffic_source_parser","homepage":null,"size":342,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/13"},"html":{"href":"https://github.com/thiesen/traffic_source_parser/pull/13"},"issue":{"href":"https://api.github.com/repos/thiesen/traffic_source_parser/issues/13"},"comments":{"href":"https://api.github.com/repos/thiesen/traffic_source_parser/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thiesen/traffic_source_parser/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/thiesen/traffic_source_parser/statuses/7657c09cc2cfb7d7e4d55410099284f8551d95ac"}}}}