Sha256: d5ca51d40c89d8f8a51670238749644e9a4a920bfe0553ab6ff469113c5481e1
Contents?: true
Size: 505 Bytes
Versions: 11
Compression:
Stored size: 505 Bytes
Contents
module SynapsePayments class Subscriptions def initialize(client) @client = client end def all @client.get(path: '/subscriptions') end def create(url:, scope:) data = { url: url, scope: scope } @client.post(path: "/subscriptions", json: data) end def find(id) @client.get(path: "/subscriptions/#{id}") end def update(id, data) @client.patch(path: "/subscriptions/#{id}", json: data) end end end
Version data entries
11 entries across 11 versions & 1 rubygems