Sha256: 73c83588c91e0ad88264f533799bc69707c08439efa6f3a8579454b853ec1011

Contents?: true

Size: 672 Bytes

Versions: 4

Compression:

Stored size: 672 Bytes

Contents

module Buttercoin
  class Client
    module AccountQueryMethods

      # Retrieve the ticker
      #
      # @param timestamp integer (optional)

      def get_key(timestamp=nil)
        get '/key', timestamp
      end

      # Retrieve the account balanaces for all currencies
      #
      # @param timestamp integer (optional)

      def get_balances(timestamp=nil)
        get '/account/balances', timestamp
      end

      # Retrieve the bitcoin deposit address
      #
      # @param timestamp integer (optional)

      def get_deposit_address(timestamp=nil)
        mash = get '/account/depositAddress', timestamp
        mash.address
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
buttercoin-0.0.4 lib/buttercoin/client/account_query_methods.rb
buttercoin-0.0.3 lib/buttercoin/client/account_query_methods.rb
buttercoin-0.0.2 lib/buttercoin/client/account_query_methods.rb
buttercoin-0.0.1 lib/buttercoin/client/account_query_methods.rb