Class: Luma::Provider

Inherits:
Connection show all
Defined in:
lib/luma/provider.rb

Constant Summary collapse

PROVIDER_ENDPOINT =
'/api/providers'.freeze

Constants inherited from Connection

Connection::DEFAULT_ENDPOINT

Instance Method Summary collapse

Methods inherited from Connection

#add_header, #initialize, #luma_request, #request

Constructor Details

This class inherits a constructor from Luma::Connection

Instance Method Details

#create_provider(endpoint: PROVIDER_ENDPOINT, body: nil, headers: {}, auth: true, verb: :post) ⇒ Object



7
8
9
# File 'lib/luma/provider.rb', line 7

def create_provider(endpoint: PROVIDER_ENDPOINT, body: nil, headers: {}, auth: true, verb: :post)
  luma_request(auth: auth, body: body, endpoint: endpoint, verb: verb)
end