Class: BlockchainInfo::Charts

Inherits:
Ressource show all
Defined in:
lib/charts.rb

Overview

See blockchain.info/fr/api/charts_api for more informations.

Class Method Summary collapse

Class Method Details

.chart(type, format = "json") ⇒ Object



6
7
8
# File 'lib/charts.rb', line 6

def self.chart type, format="json"
  query_charts_api(type, { format: format })
end

.statsObject

Returns a JSON object containing the statistics seen on the stats page.



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

def self.stats
  query('stats', { format: "json" })
end