Module: CgminerApiClient::Miner::Commands::ReadOnly
- Included in:
- CgminerApiClient::Miner::Commands
- Defined in:
- lib/cgminer_api_client/miner/commands.rb
Instance Method Summary collapse
- #asc(number) ⇒ Object
- #asccount ⇒ Object
- #check(command) ⇒ Object
- #coin ⇒ Object
- #config ⇒ Object
- #devdetails ⇒ Object
- #devs ⇒ Object
- #notify ⇒ Object
- #pga(number) ⇒ Object
- #pgacount ⇒ Object
- #pools ⇒ Object
- #privileged ⇒ Object
- #stats ⇒ Object
- #summary ⇒ Object
- #usbstats ⇒ Object
- #version ⇒ Object
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 |
#asccount ⇒ Object
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 |
#coin ⇒ Object
17 18 19 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 17 def coin query(:coin)[0] end |
#config ⇒ Object
21 22 23 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 21 def config query(:config)[0] end |
#devdetails ⇒ Object
25 26 27 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 25 def devdetails query(:devdetails) end |
#devs ⇒ Object
29 30 31 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 29 def devs query(:devs) end |
#notify ⇒ Object
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 |
#pgacount ⇒ Object
37 38 39 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 37 def pgacount query(:pgacount) end |
#pools ⇒ Object
41 42 43 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 41 def pools query(:pools) end |
#privileged ⇒ Object
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 |
#stats ⇒ Object
57 58 59 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 57 def stats query(:stats) end |
#summary ⇒ Object
61 62 63 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 61 def summary query(:summary)[0] end |
#usbstats ⇒ Object
65 66 67 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 65 def usbstats query(:usbstats) end |
#version ⇒ Object
69 70 71 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 69 def version query(:version)[0] end |