Sha256: 25da4ed81594cf9351f08d2cbe3faabe0ad9ca391f9feb68d9e6dd08a133956d
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require 'cryptoprocessing/models/api_object' module Cryptoprocessing class Account < APIObject # Create address def create_address(options = {}) agent.create_address(self['id'], options) do |resp| yield(data, resp) if block_given? end end # List of transactions def transactions(options = {}) agent.transactions(self['id'], options) do |data, resp| yield(data, resp) if block_given? end end # List of transactions by address def transactions_by_address(address, options = {}) agent.transactions_by_address(self['id'], address, options) do |data, resp| yield(data, resp) if block_given? end end # Create transaction def create_transaction(options = {}) agent.create_transaction(self['id'], options) do |data, resp| yield(data, resp) if block_given? end end def create_callback(address, options = {}) agent.create_callback(self['id'], address, options) do |data, resp| yield(data, resp) if block_given? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cryptoprocessing-0.6.1 | lib/cryptoprocessing/models/account.rb |