class Hodlmoon::Client::RetrievePrice

Public Class Methods

call(coin, currency) click to toggle source
# File lib/hodlmoon/client/retrieve_price.rb, line 6
def self.call(coin, currency)
  new(coin: coin, currency: currency).call
end

Private Instance Methods

uri() click to toggle source
# File lib/hodlmoon/client/retrieve_price.rb, line 12
def uri
  "https://api.coinmarketcap.com/v1/ticker/#{@coin}/?convert=#{@currency}"
end