Sha256: 75e7ced7a28fb77e6c9043c18f33c35dd0c18381e2bebcae2538469b9003fcd9
Contents?: true
Size: 572 Bytes
Versions: 2
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true require 'json' require 'deep_merge/rails_compat' module BMLConnect class Transactions END_POINT = 'transactions' def initialize(client) @client = client end def create(params) transaction = BMLConnect::Models::Transaction.new(params) # generate signature transaction.sign(@client.api_key) @client.post(END_POINT, transaction.to_hash) end def get(id) @client.get(END_POINT + "/#{id}") end def list(params = {}) @client.get(END_POINT, params) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bml_connect-0.2.0 | lib/bml_connect/transactions.rb |
bml_connect-0.1.0 | lib/bml_connect/transactions.rb |