module BitcoinToYou
Constants
- BASE_URL
- VERSION
Public Class Methods
ticker()
click to toggle source
# File lib/bitcointoyou.rb, line 8 def ticker JSON.parse(HTTParty.get(url_for("ticker")))["ticker"] end
url_for(resource)
click to toggle source
# File lib/bitcointoyou.rb, line 12 def url_for(resource) "#{BASE_URL}#{resource}.aspx" end