Class: Toshi::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/toshi/client.rb

Constant Summary collapse

@@base_url =
"http://bitcoin.toshi.io/api/v0"

Class Method Summary collapse

Class Method Details

.get(path) ⇒ Object



6
7
8
9
# File 'lib/toshi/client.rb', line 6

def get(path)
  url = url_for(path)
  Toshi::Request.get(url)
end

.url_for(path) ⇒ Object



11
12
13
# File 'lib/toshi/client.rb', line 11

def url_for(path)
  @@base_url + path
end