Class: Coinbase::Currency

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/coinbase/currency.rb

Overview

Currency APIs

Instance Method Summary collapse

Methods included from Util

#base_uri, #build_query_params, #format_response, #pagination_params, #send_request

Instance Method Details

#fetch(currency_id) ⇒ Hash

Show specific currency.

Returns:

  • (Hash)

    a list of currencies.



20
21
22
# File 'lib/coinbase/currency.rb', line 20

def fetch(currency_id)
  send_request("/currencies/#{currency_id}")
end

#listHash

include Coinbase::Util List known currencies.

Returns:

  • (Hash)

    a list of currencies.



12
13
14
# File 'lib/coinbase/currency.rb', line 12

def list
  send_request('/currencies')
end