Sha256: fb99b24beec816026de5f45b5af03c9f904177975c1698fcea745331519aeaf7
Contents?: true
Size: 470 Bytes
Versions: 10
Compression:
Stored size: 470 Bytes
Contents
module Bitbot::Ticker def on_ticker(m, curr) # 'curr' can be any of GBP|EUR|USD @curr = curr if curr == GBP # GBP ticker m.reply "Current BTC➜GBP Exchange Rate from blockchain.info is #{satoshi_to_gbp} elsif curr == EUR # EUR ticker m.reply "Current BTC➜EUR Exchange Rate from blockchain.info is #{satoshi_to_eur} else # USD ticker m.reply "Current BTC➜USD Exchange Rate from blockchain.info is #{satoshi_to_usd} end end
Version data entries
10 entries across 10 versions & 1 rubygems