Sha256: d3ae3703f97438d7a93e23a10fc05c45eb6ea736b9de63f7168fe5b97f96f938

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

require 'cryptoprocessing/models/api_object'

module Cryptoprocessing
  class Address < APIObject
    def transactions(options = {})
      agent.transactions_by_address(self['account_id'], self['address'], options) do |data, resp|
        yield(data, resp) if block_given?
      end
    end

    def create_transaction(to_address, amount, options = {})
      agent.create_transaction(self['account_id'], self['address'], to_address, amount, 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/address.rb