Class: BlockchainInfo::Charts
Overview
See blockchain.info/fr/api/charts_api for more informations.
Class Method Summary collapse
- .chart(type, format = "json") ⇒ Object
-
.stats ⇒ Object
Returns a JSON object containing the statistics seen on the stats page.
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 |
.stats ⇒ Object
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 |