Ruby gem to fetch Crypto currency prices from Coin Market Cap
Add this line to your application's Gemfile:
gem 'coin_market_cap'
And then execute:
$ bundle
Or install it yourself as:
$ gem install coin_market_cap
bitcoin = CoinMarketCap::Coin.new('bitcoin')
bitcoin.price
#=> 847.63
- Fork it ( http://github.com//coin_market_cap/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request