class Luma::Provider
Constants
- PROVIDER_ENDPOINT
Public Instance Methods
create_provider(endpoint: PROVIDER_ENDPOINT, name: "", npi: nil, headers: {}, auth: true, verb: :post)
click to toggle source
# File lib/luma/provider.rb, line 7 def create_provider(endpoint: PROVIDER_ENDPOINT, name: "", npi: nil, headers: {}, auth: true, verb: :post) @body = { name: name, npi: npi } self.add_headers_and_body if auth result = self.class.send(verb.to_s, endpoint, body: @body, headers: @headers, debug_output: $stdout) { result: result, headers: @headers } end