Sha256: 37a22e217f7ec4627c39264aac563d4d0f66b661bcadd5886d3b90186bf00647
Contents?: true
Size: 769 Bytes
Versions: 12
Compression:
Stored size: 769 Bytes
Contents
module SynapsePayments class Nodes def initialize(client, user_id, oauth_key, fingerprint) @client = client @user_id = user_id @oauth_key = oauth_key @fingerprint = fingerprint end def all @client.get(path: "/users/#{@user_id}/nodes", oauth_key: @oauth_key, fingerprint: @fingerprint) end def find(id) @client.get(path: "/users/#{@user_id}/nodes/#{id}", oauth_key: @oauth_key, fingerprint: @fingerprint) end def create(data) @client.post(path: "/users/#{@user_id}/nodes", oauth_key: @oauth_key, fingerprint: @fingerprint, json: data) end def delete(id) @client.delete(path: "/users/#{@user_id}/nodes/#{id}", oauth_key: @oauth_key, fingerprint: @fingerprint) end end end
Version data entries
12 entries across 12 versions & 1 rubygems