Class: EthermineApi::Miner

Inherits:
Object
  • Object
show all
Defined in:
lib/ethermine_api/miner.rb

Class Method Summary collapse

Class Method Details

.history(options = {}) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/ethermine_api/miner.rb', line 20

def history options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call(
      "miner/#{options[:id]}/history"
    )
  )
end

.payouts(options = {}) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/ethermine_api/miner.rb', line 12

def payouts options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call(
      "miner/#{options[:id]}/payouts"
    )
  )
end

.rounds(options = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/ethermine_api/miner.rb', line 4

def rounds options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call(
      "miner/#{options[:id]}/rounds"
    )
  )
end

.settings(options = {}) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/ethermine_api/miner.rb', line 36

def settings options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call(
      "miner/#{options[:id]}/settings"
    )
  )
end

.stats(options = {}) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/ethermine_api/miner.rb', line 28

def stats options={}
  DefaultParser.parse(
    EthermineApi.connection(options[:base_url]).call(
      "miner/#{options[:id]}/currentStats"
    )
  )
end