Module: CgminerApiClient::Miner::Commands::Privileged::Pga
- Included in:
- CgminerApiClient::Miner::Commands::Privileged
- Defined in:
- lib/cgminer_api_client/miner/commands.rb
Instance Method Summary collapse
- #pgadisable(number) ⇒ Object
- #pgaenable(number) ⇒ Object
- #pgaidentify(number) ⇒ Object
- #pgaset(number, option, value = nil) ⇒ Object
Instance Method Details
#pgadisable(number) ⇒ Object
101 102 103 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 101 def pgadisable(number) query(:pgadisable, number) unless access_denied? end |
#pgaenable(number) ⇒ Object
105 106 107 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 105 def pgaenable(number) query(:pgaenable, number) unless access_denied? end |
#pgaidentify(number) ⇒ Object
109 110 111 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 109 def pgaidentify(number) query(:pgaidentify, number) unless access_denied? end |
#pgaset(number, option, value = nil) ⇒ Object
113 114 115 116 117 |
# File 'lib/cgminer_api_client/miner/commands.rb', line 113 def pgaset(number, option, value = nil) return if access_denied? value ? query(:pgaset, number, option, value) : query(:pgaset, number, option) end |