Sha256: 2376cfb765775692a70ea015b8e4d69ba5d18a4a4b909ab3aa072dc79547ba24
Contents?: true
Size: 718 Bytes
Versions: 2
Compression:
Stored size: 718 Bytes
Contents
module EthermineApi class Worker class << self def all options={} DefaultParser.parse( EthermineApi.connection(options[:base_url]).call( "miner/#{options[:miner_id]}/workers" ) ) end def history options={} DefaultParser.parse( EthermineApi.connection(options[:base_url]).call( "miner/#{options[:miner_id]}/worker/#{options[:id]}/history" ) ) end def stats options={} DefaultParser.parse( EthermineApi.connection(options[:base_url]).call( "miner/#{options[:miner_id]}/worker/#{options[:id]}/currentStats" ) ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ethermine_api-0.1.1 | lib/ethermine_api/worker.rb |
ethermine_api-0.1.0 | lib/ethermine_api/worker.rb |