{"action":"created","comment":{"url":"https://api.github.com/repos/eligible/eligible-ruby/pulls/comments/52414622","id":52414622,"diff_hunk":"@@ -0,0 +1,36 @@\n+module Eligible\n+  class OriginalSignaturePdf < APIResource\n+    def self.get(params, api_key = nil)\n+      self.check_param(params[:enrollment_npi_id], 'Enrollment Npi id')\n+      response, api_key = Eligible.request(:get, \"/enrollment_npis/#{params[:enrollment_npi_id]}/original_signature_pdf\", api_key, params)\n+      Util.convert_to_eligible_object(response, api_key)\n+    end\n+\n+    def self.post(params, api_key = nil)\n+      self.check_param(params[:enrollment_npi_id], 'Enrollment Npi id')\n+      response, api_key = Eligible.request(:post, \"/enrollment_npis/#{params[:enrollment_npi_id]}/original_signature_pdf\", api_key, params)\n+      Util.convert_to_eligible_object(response, api_key)\n+    end\n+\n+    def self.update(params, api_key = nil)\n+      self.check_param(params[:enrollment_npi_id], 'Enrollment Npi id')\n+      response, api_key = Eligible.request(:put, \"/enrollment_npis/#{params[:enrollment_npi_id]}/original_signature_pdf\", api_key, params)\n+      Util.convert_to_eligible_object(response, api_key)\n+    end\n+\n+    def self.delete(params, api_key = nil)\n+      self.check_param(params[:enrollment_npi_id], 'Enrollment Npi id')\n+      response, api_key = Eligible.request(:delete, \"/enrollment_npis/#{params[:enrollment_npi_id]}/original_signature_pdf\", api_key, params)\n+      Util.convert_to_eligible_object(response, api_key)\n+    end\n+\n+    def self.download(params, api_key = nil)\n+      self.check_param(params[:enrollment_npi_id], 'Enrollment Npi id')\n+      response, api_key = Eligible.request(:get, \"/enrollment_npis/#{params[:enrollment_npi_id]}/original_signature_pdf/download\", api_key, params)\n+      filename = \"original_signature_pdf.pdf\"\n+      file = File.new(filename, \"w\")\n+      file.write response\n+      file.close\n+    end\n+  end\n+end","path":"lib/eligible/original_signature_pdf.rb","position":36,"original_position":36,"commit_id":"e43dbb1a143d33f8968fdfc59d6a522052b214e3","original_commit_id":"e43dbb1a143d33f8968fdfc59d6a522052b214e3","user":{"login":"kovyrin","id":3467,"avatar_url":"https://avatars.githubusercontent.com/u/3467?v=3","gravatar_id":"","url":"https://api.github.com/users/kovyrin","html_url":"https://github.com/kovyrin","followers_url":"https://api.github.com/users/kovyrin/followers","following_url":"https://api.github.com/users/kovyrin/following{/other_user}","gists_url":"https://api.github.com/users/kovyrin/gists{/gist_id}","starred_url":"https://api.github.com/users/kovyrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kovyrin/subscriptions","organizations_url":"https://api.github.com/users/kovyrin/orgs","repos_url":"https://api.github.com/users/kovyrin/repos","events_url":"https://api.github.com/users/kovyrin/events{/privacy}","received_events_url":"https://api.github.com/users/kovyrin/received_events","type":"User","site_admin":false},"body":"newline","created_at":"2016-02-10T04:55:43Z","updated_at":"2016-02-10T04:55:43Z","html_url":"https://github.com/eligible/eligible-ruby/pull/14#discussion_r52414622","pull_request_url":"https://api.github.com/repos/eligible/eligible-ruby/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/eligible/eligible-ruby/pulls/comments/52414622"},"html":{"href":"https://github.com/eligible/eligible-ruby/pull/14#discussion_r52414622"},"pull_request":{"href":"https://api.github.com/repos/eligible/eligible-ruby/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/eligible/eligible-ruby/pulls/14","id":58494666,"html_url":"https://github.com/eligible/eligible-ruby/pull/14","diff_url":"https://github.com/eligible/eligible-ruby/pull/14.diff","patch_url":"https://github.com/eligible/eligible-ruby/pull/14.patch","issue_url":"https://api.github.com/repos/eligible/eligible-ruby/issues/14","number":14,"state":"open","locked":false,"title":"Adding new endpoints to the Eligible gem","user":{"login":"ankit819","id":10399798,"avatar_url":"https://avatars.githubusercontent.com/u/10399798?v=3","gravatar_id":"","url":"https://api.github.com/users/ankit819","html_url":"https://github.com/ankit819","followers_url":"https://api.github.com/users/ankit819/followers","following_url":"https://api.github.com/users/ankit819/following{/other_user}","gists_url":"https://api.github.com/users/ankit819/gists{/gist_id}","starred_url":"https://api.github.com/users/ankit819/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankit819/subscriptions","organizations_url":"https://api.github.com/users/ankit819/orgs","repos_url":"https://api.github.com/users/ankit819/repos","events_url":"https://api.github.com/users/ankit819/events{/privacy}","received_events_url":"https://api.github.com/users/ankit819/received_events","type":"User","site_admin":false},"body":"Adding customer, original_signature_pdf and payer endpoints.\r\nAnd fixing few bugs.","created_at":"2016-02-05T22:40:07Z","updated_at":"2016-02-10T04:55:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df5b43211a2a6337abfdf4d488ba2f89d8f2295e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eligible/eligible-ruby/pulls/14/commits","review_comments_url":"https://api.github.com/repos/eligible/eligible-ruby/pulls/14/comments","review_comment_url":"https://api.github.com/repos/eligible/eligible-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eligible/eligible-ruby/issues/14/comments","statuses_url":"https://api.github.com/repos/eligible/eligible-ruby/statuses/e43dbb1a143d33f8968fdfc59d6a522052b214e3","head":{"label":"eligible:ankit819/add_endpoints","ref":"ankit819/add_endpoints","sha":"e43dbb1a143d33f8968fdfc59d6a522052b214e3","user":{"login":"eligible","id":14228934,"avatar_url":"https://avatars.githubusercontent.com/u/14228934?v=3","gravatar_id":"","url":"https://api.github.com/users/eligible","html_url":"https://github.com/eligible","followers_url":"https://api.github.com/users/eligible/followers","following_url":"https://api.github.com/users/eligible/following{/other_user}","gists_url":"https://api.github.com/users/eligible/gists{/gist_id}","starred_url":"https://api.github.com/users/eligible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eligible/subscriptions","organizations_url":"https://api.github.com/users/eligible/orgs","repos_url":"https://api.github.com/users/eligible/repos","events_url":"https://api.github.com/users/eligible/events{/privacy}","received_events_url":"https://api.github.com/users/eligible/received_events","type":"Organization","site_admin":false},"repo":{"id":42466408,"name":"eligible-ruby","full_name":"eligible/eligible-ruby","owner":{"login":"eligible","id":14228934,"avatar_url":"https://avatars.githubusercontent.com/u/14228934?v=3","gravatar_id":"","url":"https://api.github.com/users/eligible","html_url":"https://github.com/eligible","followers_url":"https://api.github.com/users/eligible/followers","following_url":"https://api.github.com/users/eligible/following{/other_user}","gists_url":"https://api.github.com/users/eligible/gists{/gist_id}","starred_url":"https://api.github.com/users/eligible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eligible/subscriptions","organizations_url":"https://api.github.com/users/eligible/orgs","repos_url":"https://api.github.com/users/eligible/repos","events_url":"https://api.github.com/users/eligible/events{/privacy}","received_events_url":"https://api.github.com/users/eligible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eligible/eligible-ruby","description":"Ruby library for eligible","fork":false,"url":"https://api.github.com/repos/eligible/eligible-ruby","forks_url":"https://api.github.com/repos/eligible/eligible-ruby/forks","keys_url":"https://api.github.com/repos/eligible/eligible-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eligible/eligible-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eligible/eligible-ruby/teams","hooks_url":"https://api.github.com/repos/eligible/eligible-ruby/hooks","issue_events_url":"https://api.github.com/repos/eligible/eligible-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/eligible/eligible-ruby/events","assignees_url":"https://api.github.com/repos/eligible/eligible-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/eligible/eligible-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/eligible/eligible-ruby/tags","blobs_url":"https://api.github.com/repos/eligible/eligible-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eligible/eligible-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eligible/eligible-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/eligible/eligible-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eligible/eligible-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/eligible/eligible-ruby/languages","stargazers_url":"https://api.github.com/repos/eligible/eligible-ruby/stargazers","contributors_url":"https://api.github.com/repos/eligible/eligible-ruby/contributors","subscribers_url":"https://api.github.com/repos/eligible/eligible-ruby/subscribers","subscription_url":"https://api.github.com/repos/eligible/eligible-ruby/subscription","commits_url":"https://api.github.com/repos/eligible/eligible-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/eligible/eligible-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/eligible/eligible-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/eligible/eligible-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/eligible/eligible-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/eligible/eligible-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eligible/eligible-ruby/merges","archive_url":"https://api.github.com/repos/eligible/eligible-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eligible/eligible-ruby/downloads","issues_url":"https://api.github.com/repos/eligible/eligible-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/eligible/eligible-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/eligible/eligible-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/eligible/eligible-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eligible/eligible-ruby/labels{/name}","releases_url":"https://api.github.com/repos/eligible/eligible-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/eligible/eligible-ruby/deployments","created_at":"2015-09-14T17:51:11Z","updated_at":"2016-01-22T16:56:00Z","pushed_at":"2016-02-09T19:34:15Z","git_url":"git://github.com/eligible/eligible-ruby.git","ssh_url":"git@github.com:eligible/eligible-ruby.git","clone_url":"https://github.com/eligible/eligible-ruby.git","svn_url":"https://github.com/eligible/eligible-ruby","homepage":"","size":149,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":10,"default_branch":"master"}},"base":{"label":"eligible:master","ref":"master","sha":"2982027e4bba1cfd8b0395f18a61b44a6930e474","user":{"login":"eligible","id":14228934,"avatar_url":"https://avatars.githubusercontent.com/u/14228934?v=3","gravatar_id":"","url":"https://api.github.com/users/eligible","html_url":"https://github.com/eligible","followers_url":"https://api.github.com/users/eligible/followers","following_url":"https://api.github.com/users/eligible/following{/other_user}","gists_url":"https://api.github.com/users/eligible/gists{/gist_id}","starred_url":"https://api.github.com/users/eligible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eligible/subscriptions","organizations_url":"https://api.github.com/users/eligible/orgs","repos_url":"https://api.github.com/users/eligible/repos","events_url":"https://api.github.com/users/eligible/events{/privacy}","received_events_url":"https://api.github.com/users/eligible/received_events","type":"Organization","site_admin":false},"repo":{"id":42466408,"name":"eligible-ruby","full_name":"eligible/eligible-ruby","owner":{"login":"eligible","id":14228934,"avatar_url":"https://avatars.githubusercontent.com/u/14228934?v=3","gravatar_id":"","url":"https://api.github.com/users/eligible","html_url":"https://github.com/eligible","followers_url":"https://api.github.com/users/eligible/followers","following_url":"https://api.github.com/users/eligible/following{/other_user}","gists_url":"https://api.github.com/users/eligible/gists{/gist_id}","starred_url":"https://api.github.com/users/eligible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eligible/subscriptions","organizations_url":"https://api.github.com/users/eligible/orgs","repos_url":"https://api.github.com/users/eligible/repos","events_url":"https://api.github.com/users/eligible/events{/privacy}","received_events_url":"https://api.github.com/users/eligible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eligible/eligible-ruby","description":"Ruby library for eligible","fork":false,"url":"https://api.github.com/repos/eligible/eligible-ruby","forks_url":"https://api.github.com/repos/eligible/eligible-ruby/forks","keys_url":"https://api.github.com/repos/eligible/eligible-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eligible/eligible-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eligible/eligible-ruby/teams","hooks_url":"https://api.github.com/repos/eligible/eligible-ruby/hooks","issue_events_url":"https://api.github.com/repos/eligible/eligible-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/eligible/eligible-ruby/events","assignees_url":"https://api.github.com/repos/eligible/eligible-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/eligible/eligible-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/eligible/eligible-ruby/tags","blobs_url":"https://api.github.com/repos/eligible/eligible-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eligible/eligible-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eligible/eligible-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/eligible/eligible-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eligible/eligible-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/eligible/eligible-ruby/languages","stargazers_url":"https://api.github.com/repos/eligible/eligible-ruby/stargazers","contributors_url":"https://api.github.com/repos/eligible/eligible-ruby/contributors","subscribers_url":"https://api.github.com/repos/eligible/eligible-ruby/subscribers","subscription_url":"https://api.github.com/repos/eligible/eligible-ruby/subscription","commits_url":"https://api.github.com/repos/eligible/eligible-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/eligible/eligible-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/eligible/eligible-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/eligible/eligible-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/eligible/eligible-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/eligible/eligible-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eligible/eligible-ruby/merges","archive_url":"https://api.github.com/repos/eligible/eligible-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eligible/eligible-ruby/downloads","issues_url":"https://api.github.com/repos/eligible/eligible-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/eligible/eligible-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/eligible/eligible-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/eligible/eligible-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eligible/eligible-ruby/labels{/name}","releases_url":"https://api.github.com/repos/eligible/eligible-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/eligible/eligible-ruby/deployments","created_at":"2015-09-14T17:51:11Z","updated_at":"2016-01-22T16:56:00Z","pushed_at":"2016-02-09T19:34:15Z","git_url":"git://github.com/eligible/eligible-ruby.git","ssh_url":"git@github.com:eligible/eligible-ruby.git","clone_url":"https://github.com/eligible/eligible-ruby.git","svn_url":"https://github.com/eligible/eligible-ruby","homepage":"","size":149,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eligible/eligible-ruby/pulls/14"},"html":{"href":"https://github.com/eligible/eligible-ruby/pull/14"},"issue":{"href":"https://api.github.com/repos/eligible/eligible-ruby/issues/14"},"comments":{"href":"https://api.github.com/repos/eligible/eligible-ruby/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/eligible/eligible-ruby/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/eligible/eligible-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eligible/eligible-ruby/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/eligible/eligible-ruby/statuses/e43dbb1a143d33f8968fdfc59d6a522052b214e3"}}}}