Class: RemoteDroid::Query
- Inherits:
-
Object
- Object
- RemoteDroid::Query
- Defined in:
- lib/remotedroid.rb
Instance Method Summary collapse
- #battery ⇒ Object
- #cell_id ⇒ Object (also: #cell_tower)
- #current_brightness ⇒ Object (also: #brightness)
-
#initialize(callback) ⇒ Query
constructor
A new instance of Query.
- #ip ⇒ Object
Constructor Details
#initialize(callback) ⇒ Query
Returns a new instance of Query.
666 667 668 |
# File 'lib/remotedroid.rb', line 666 def initialize(callback) @callback = callback end |
Instance Method Details
#battery ⇒ Object
670 671 672 |
# File 'lib/remotedroid.rb', line 670 def battery() q(:battery).to_i end |
#cell_id ⇒ Object Also known as: cell_tower
680 681 682 |
# File 'lib/remotedroid.rb', line 680 def cell_id() q(:cell_id) end |
#current_brightness ⇒ Object Also known as: brightness
674 675 676 |
# File 'lib/remotedroid.rb', line 674 def current_brightness() q(:current_brightness).to_i end |
#ip ⇒ Object
686 687 688 |
# File 'lib/remotedroid.rb', line 686 def ip() q(:ip) end |