Class: RemoteDroid::Query

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

Instance Method Summary collapse

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

#batteryObject



670
671
672
# File 'lib/remotedroid.rb', line 670

def battery()      
  q(:battery).to_i
end

#cell_idObject Also known as: cell_tower



680
681
682
# File 'lib/remotedroid.rb', line 680

def cell_id()      
  q(:cell_id)
end

#current_brightnessObject Also known as: brightness



674
675
676
# File 'lib/remotedroid.rb', line 674

def current_brightness()      
  q(:current_brightness).to_i
end

#ipObject



686
687
688
# File 'lib/remotedroid.rb', line 686

def ip()      
  q(:ip)
end