class Luma::Facilities

Constants

FACILITY_ENDPOINT

Public Instance Methods

create_facility(endpoint: FACILITY_ENDPOINT, body: nil, headers: {}, auth: true, verb: :post, debug_output: $stdout) click to toggle source
# File lib/luma/facilities.rb, line 7
def create_facility(endpoint: FACILITY_ENDPOINT, body: nil, headers: {}, auth: true, verb: :post, debug_output: $stdout)
   @body = body
   self.add_headers_and_body if auth

   result = self.class.send(verb.to_s, endpoint, body: @body, headers: @headers)
   { result: result, headers: @headers }
end