Module: CgminerApiClient::Miner::Commands::ReadOnly

Included in:
CgminerApiClient::Miner::Commands
Defined in:
lib/cgminer_api_client/miner/commands.rb

Instance Method Summary collapse

Instance Method Details

#asc(number) ⇒ Object



5
6
7
# File 'lib/cgminer_api_client/miner/commands.rb', line 5

def asc(number)
  query(:asc, number)
end

#asccountObject



9
10
11
# File 'lib/cgminer_api_client/miner/commands.rb', line 9

def asccount
  query(:asccount)
end

#check(command) ⇒ Object



13
14
15
# File 'lib/cgminer_api_client/miner/commands.rb', line 13

def check(command)
  query(:check, command)[0]
end

#coinObject



17
18
19
# File 'lib/cgminer_api_client/miner/commands.rb', line 17

def coin
  query(:coin)[0]
end

#configObject



21
22
23
# File 'lib/cgminer_api_client/miner/commands.rb', line 21

def config
  query(:config)[0]
end

#devdetailsObject



25
26
27
# File 'lib/cgminer_api_client/miner/commands.rb', line 25

def devdetails
  query(:devdetails)
end

#devsObject



29
30
31
# File 'lib/cgminer_api_client/miner/commands.rb', line 29

def devs
  query(:devs)
end

#notifyObject



53
54
55
# File 'lib/cgminer_api_client/miner/commands.rb', line 53

def notify
  query(:notify)
end

#pga(number) ⇒ Object



33
34
35
# File 'lib/cgminer_api_client/miner/commands.rb', line 33

def pga(number)
  query(:pga, number)
end

#pgacountObject



37
38
39
# File 'lib/cgminer_api_client/miner/commands.rb', line 37

def pgacount
  query(:pgacount)
end

#poolsObject



41
42
43
# File 'lib/cgminer_api_client/miner/commands.rb', line 41

def pools
  query(:pools)
end

#privilegedObject



45
46
47
48
49
50
51
# File 'lib/cgminer_api_client/miner/commands.rb', line 45

def privileged
    query(:privileged)
    true
  rescue
    false

end

#statsObject



57
58
59
# File 'lib/cgminer_api_client/miner/commands.rb', line 57

def stats
  query(:stats)
end

#summaryObject



61
62
63
# File 'lib/cgminer_api_client/miner/commands.rb', line 61

def summary
  query(:summary)[0]
end

#usbstatsObject



65
66
67
# File 'lib/cgminer_api_client/miner/commands.rb', line 65

def usbstats
  query(:usbstats)
end

#versionObject



69
70
71
# File 'lib/cgminer_api_client/miner/commands.rb', line 69

def version
  query(:version)[0]
end