class EthermineApi::Worker

Public Class Methods

all(options={}) click to toggle source
# File lib/ethermine_api/worker.rb, line 4
def all options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call(
      "miner/#{options[:miner_id]}/workers"
    )
  )
end
history(options={}) click to toggle source
# File lib/ethermine_api/worker.rb, line 12
def history options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call(
      "miner/#{options[:miner_id]}/worker/#{options[:id]}/history"
    )
  )
end
stats(options={}) click to toggle source
# File lib/ethermine_api/worker.rb, line 20
def stats options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call(
      "miner/#{options[:miner_id]}/worker/#{options[:id]}/currentStats"
    )
  )
end