Class: PerfectAudit::Connection

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/perfect_audit/connection.rb

Constant Summary collapse

BASE_PATH =
'https://api.ocrolus.com/v1/'

Instance Method Summary collapse

Instance Method Details

#get(path, params = {}) ⇒ Object



19
20
21
# File 'lib/perfect_audit/connection.rb', line 19

def get(path, params = {})
  HTTP.auth(auth).get(url(path), params)
end

#post(path, params = {}) ⇒ Object



15
16
17
# File 'lib/perfect_audit/connection.rb', line 15

def post(path, params = {})
  HTTP.auth(auth).post(url(path), params)
end