{"action":"created","comment":{"url":"https://api.github.com/repos/evercam/evercam-api/pulls/comments/50682686","id":50682686,"diff_hunk":"@@ -143,10 +143,12 @@ def execute\n \n         camera.discoverable = inputs[:discoverable] if inputs[:discoverable]\n         camera.is_online_email_owner_notification = inputs[:is_online_email_owner_notification] if inputs[:is_online_email_owner_notification]\n-        if inputs[:is_online]\n+        if inputs[:is_online] != null","path":"lib/actors/camera_create.rb","position":5,"original_position":5,"commit_id":"9d4375dd70ad3b135a1b26b6dc82f92355fb40f9","original_commit_id":"9d4375dd70ad3b135a1b26b6dc82f92355fb40f9","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 the return of the conditional for variable assignment and comparison.","created_at":"2016-01-25T11:29:34Z","updated_at":"2016-01-25T11:29:34Z","html_url":"https://github.com/evercam/evercam-api/pull/566#discussion_r50682686","pull_request_url":"https://api.github.com/repos/evercam/evercam-api/pulls/566","_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/comments/50682686"},"html":{"href":"https://github.com/evercam/evercam-api/pull/566#discussion_r50682686"},"pull_request":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/566"}}},"pull_request":{"url":"https://api.github.com/repos/evercam/evercam-api/pulls/566","id":57049266,"html_url":"https://github.com/evercam/evercam-api/pull/566","diff_url":"https://github.com/evercam/evercam-api/pull/566.diff","patch_url":"https://github.com/evercam/evercam-api/pull/566.patch","issue_url":"https://api.github.com/repos/evercam/evercam-api/issues/566","number":566,"state":"open","locked":false,"title":"is_online status updated","user":{"login":"muneeb2542","id":6482077,"avatar_url":"https://avatars.githubusercontent.com/u/6482077?v=3","gravatar_id":"","url":"https://api.github.com/users/muneeb2542","html_url":"https://github.com/muneeb2542","followers_url":"https://api.github.com/users/muneeb2542/followers","following_url":"https://api.github.com/users/muneeb2542/following{/other_user}","gists_url":"https://api.github.com/users/muneeb2542/gists{/gist_id}","starred_url":"https://api.github.com/users/muneeb2542/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muneeb2542/subscriptions","organizations_url":"https://api.github.com/users/muneeb2542/orgs","repos_url":"https://api.github.com/users/muneeb2542/repos","events_url":"https://api.github.com/users/muneeb2542/events{/privacy}","received_events_url":"https://api.github.com/users/muneeb2542/received_events","type":"User","site_admin":false},"body":"@azharmalik3 ","created_at":"2016-01-25T10:01:12Z","updated_at":"2016-01-25T11:29:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35a68eb423ad8786acc5ad1d2b332407825d66ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evercam/evercam-api/pulls/566/commits","review_comments_url":"https://api.github.com/repos/evercam/evercam-api/pulls/566/comments","review_comment_url":"https://api.github.com/repos/evercam/evercam-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evercam/evercam-api/issues/566/comments","statuses_url":"https://api.github.com/repos/evercam/evercam-api/statuses/9d4375dd70ad3b135a1b26b6dc82f92355fb40f9","head":{"label":"evercam:is_online_updated","ref":"is_online_updated","sha":"9d4375dd70ad3b135a1b26b6dc82f92355fb40f9","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":14651973,"name":"evercam-api","full_name":"evercam/evercam-api","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-api","description":"Grape application that manages all communication between Evercam Media & Evercam Clients","fork":false,"url":"https://api.github.com/repos/evercam/evercam-api","forks_url":"https://api.github.com/repos/evercam/evercam-api/forks","keys_url":"https://api.github.com/repos/evercam/evercam-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-api/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-api/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-api/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-api/events","assignees_url":"https://api.github.com/repos/evercam/evercam-api/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-api/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-api/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-api/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-api/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-api/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-api/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-api/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-api/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-api/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-api/merges","archive_url":"https://api.github.com/repos/evercam/evercam-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-api/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-api/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-api/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-api/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-api/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-api/releases{/id}","deployments_url":"https://api.github.com/repos/evercam/evercam-api/deployments","created_at":"2013-11-23T22:52:01Z","updated_at":"2016-01-11T07:15:07Z","pushed_at":"2016-01-25T11:29:31Z","git_url":"git://github.com/evercam/evercam-api.git","ssh_url":"git@github.com:evercam/evercam-api.git","clone_url":"https://github.com/evercam/evercam-api.git","svn_url":"https://github.com/evercam/evercam-api","homepage":"http://dash.evercam.io/swagger","size":152140,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":40,"forks":6,"open_issues":40,"watchers":11,"default_branch":"master"}},"base":{"label":"evercam:master","ref":"master","sha":"25df6521d96e14782a92ece904e32e86fba2d615","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":14651973,"name":"evercam-api","full_name":"evercam/evercam-api","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-api","description":"Grape application that manages all communication between Evercam Media & Evercam Clients","fork":false,"url":"https://api.github.com/repos/evercam/evercam-api","forks_url":"https://api.github.com/repos/evercam/evercam-api/forks","keys_url":"https://api.github.com/repos/evercam/evercam-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-api/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-api/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-api/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-api/events","assignees_url":"https://api.github.com/repos/evercam/evercam-api/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-api/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-api/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-api/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-api/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-api/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-api/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-api/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-api/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-api/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-api/merges","archive_url":"https://api.github.com/repos/evercam/evercam-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-api/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-api/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-api/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-api/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-api/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-api/releases{/id}","deployments_url":"https://api.github.com/repos/evercam/evercam-api/deployments","created_at":"2013-11-23T22:52:01Z","updated_at":"2016-01-11T07:15:07Z","pushed_at":"2016-01-25T11:29:31Z","git_url":"git://github.com/evercam/evercam-api.git","ssh_url":"git@github.com:evercam/evercam-api.git","clone_url":"https://github.com/evercam/evercam-api.git","svn_url":"https://github.com/evercam/evercam-api","homepage":"http://dash.evercam.io/swagger","size":152140,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":40,"forks":6,"open_issues":40,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/566"},"html":{"href":"https://github.com/evercam/evercam-api/pull/566"},"issue":{"href":"https://api.github.com/repos/evercam/evercam-api/issues/566"},"comments":{"href":"https://api.github.com/repos/evercam/evercam-api/issues/566/comments"},"review_comments":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/566/comments"},"review_comment":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/566/commits"},"statuses":{"href":"https://api.github.com/repos/evercam/evercam-api/statuses/9d4375dd70ad3b135a1b26b6dc82f92355fb40f9"}}}}