Class: EthermineApi::Pool
- Inherits:
-
Object
- Object
- EthermineApi::Pool
- Defined in:
- lib/ethermine_api/pool.rb
Class Method Summary collapse
- .blocks_history(options = {}) ⇒ Object
- .credits(options = {}) ⇒ Object
- .network_stats(options = {}) ⇒ Object
- .servers_history(options = {}) ⇒ Object
- .stats(options = {}) ⇒ Object
Class Method Details
.blocks_history(options = {}) ⇒ Object
16 17 18 19 20 |
# File 'lib/ethermine_api/pool.rb', line 16 def blocks_history ={} DefaultParser.parse( EthermineApi.connection([:base_url]).call("blocks/history") ) end |
.credits(options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/ethermine_api/pool.rb', line 10 def credits ={} DefaultParser.parse( EthermineApi.connection([:base_url]).call("credits") ) end |
.network_stats(options = {}) ⇒ Object
22 23 24 25 26 |
# File 'lib/ethermine_api/pool.rb', line 22 def network_stats ={} DefaultParser.parse( EthermineApi.connection([:base_url]).call("networkStats") ) end |
.servers_history(options = {}) ⇒ Object
28 29 30 31 32 |
# File 'lib/ethermine_api/pool.rb', line 28 def servers_history ={} DefaultParser.parse( EthermineApi.connection([:base_url]).call("servers/history") ) end |
.stats(options = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/ethermine_api/pool.rb', line 4 def stats ={} DefaultParser.parse( EthermineApi.connection([:base_url]).call("poolStats") ) end |