Class: Brightpearl::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/brightpearl/resource.rb

Class Method Summary collapse

Class Method Details

.send_request(path:, method: :get, **options) ⇒ Object



4
5
6
# File 'lib/brightpearl/resource.rb', line 4

def self.send_request(path:, method: :get, **options)
  Brightpearl::Client.send_request(path: path, method: method, **options)
end

.to_query(query_params) ⇒ Object



8
9
10
# File 'lib/brightpearl/resource.rb', line 8

def self.to_query(query_params)
  URI.encode_www_form(query_params)
end