class EtherClient::Api::MinerApi
Public Class Methods
new(miner_id)
click to toggle source
# File lib/etherclient/api/miner_api.rb, line 3 def initialize(miner_id) @miner_id = miner_id end
Public Instance Methods
blocks()
click to toggle source
# File lib/etherclient/api/miner_api.rb, line 7 def blocks array = ethpool_request("miner/#{@miner_id}/blocks") EtherClient::Model::MinerBlock.all(array) end
history()
click to toggle source
# File lib/etherclient/api/miner_api.rb, line 12 def history array = ethermine_request("miner/#{@miner_id}/history") EtherClient::Model::MinerHistory.all(array) end
payouts()
click to toggle source
# File lib/etherclient/api/miner_api.rb, line 17 def payouts array = ethermine_request("miner/#{@miner_id}/payouts") EtherClient::Model::MinerPayout.all(array) end
rounds()
click to toggle source
# File lib/etherclient/api/miner_api.rb, line 22 def rounds array = ethermine_request("miner/#{@miner_id}/rounds") EtherClient::Model::MinerRound.all(array) end
settings()
click to toggle source
# File lib/etherclient/api/miner_api.rb, line 27 def settings data = ethermine_request("miner/#{@miner_id}/settings") EtherClient::Model::MinerSetting.new(data) end
statistics()
click to toggle source
# File lib/etherclient/api/miner_api.rb, line 32 def statistics data = ethermine_request("miner/#{@miner_id}/currentStats") EtherClient::Model::MinerStatistic.new(data) end