Class: EthermineApi::Miner
- Inherits:
-
Object
- Object
- EthermineApi::Miner
- Defined in:
- lib/ethermine_api/miner.rb
Class Method Summary collapse
- .history(options = {}) ⇒ Object
- .payouts(options = {}) ⇒ Object
- .rounds(options = {}) ⇒ Object
- .settings(options = {}) ⇒ Object
- .stats(options = {}) ⇒ Object
Class Method Details
.history(options = {}) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/ethermine_api/miner.rb', line 20 def history ={} DefaultParser.parse( EthermineApi.connection([:base_url]).call( "miner/#{[:id]}/history" ) ) end |
.payouts(options = {}) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/ethermine_api/miner.rb', line 12 def payouts ={} DefaultParser.parse( EthermineApi.connection([:base_url]).call( "miner/#{[:id]}/payouts" ) ) end |
.rounds(options = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/ethermine_api/miner.rb', line 4 def rounds ={} DefaultParser.parse( EthermineApi.connection([:base_url]).call( "miner/#{[:id]}/rounds" ) ) end |
.settings(options = {}) ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/ethermine_api/miner.rb', line 36 def settings ={} DefaultParser.parse( EthermineApi.connection([:base_url]).call( "miner/#{[:id]}/settings" ) ) end |
.stats(options = {}) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/ethermine_api/miner.rb', line 28 def stats ={} DefaultParser.parse( EthermineApi.connection([:base_url]).call( "miner/#{[:id]}/currentStats" ) ) end |