Class: Coinbase::Currency
- Inherits:
-
Object
- Object
- Coinbase::Currency
- Includes:
- Util
- Defined in:
- lib/coinbase/currency.rb
Overview
Currency APIs
Instance Method Summary collapse
-
#fetch(currency_id) ⇒ Hash
Show specific currency.
-
#list ⇒ Hash
include Coinbase::Util List known currencies.
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.
20 21 22 |
# File 'lib/coinbase/currency.rb', line 20 def fetch(currency_id) send_request("/currencies/#{currency_id}") end |
#list ⇒ Hash
include Coinbase::Util List known currencies.
12 13 14 |
# File 'lib/coinbase/currency.rb', line 12 def list send_request('/currencies') end |