Class: Wompi::Resource

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

Direct Known Subclasses

Merchant, PaymentLink, Pse, Token, Transaction

Class Method Summary collapse

Class Method Details

.get(path, params = {}, auth_type: :private) ⇒ Object



3
4
5
# File 'lib/wompi/resource.rb', line 3

def self.get(path, params = {}, auth_type: :private)
  Client.new.call(:get, path, params, auth_type: auth_type)
end

.post(path, params = {}, auth_type: :private) ⇒ Object



7
8
9
# File 'lib/wompi/resource.rb', line 7

def self.post(path, params = {}, auth_type: :private)
  Client.new.call(:post, path, params, auth_type: auth_type)
end