Class: AndroidAdb::Device

Inherits:
Object
  • Object
show all
Defined in:
lib/android-adb/Device.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, serial) ⇒ Device

Contructs an Device object.

Parameters:

  • name (String)

    The name of the device/emulator.

  • serial (String)

    The serial number of the device/emulator.



13
14
15
16
# File 'lib/android-adb/Device.rb', line 13

def initialize(name, serial)
  @name = name
  @serial = serial
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/android-adb/Device.rb', line 7

def name
  @name
end

#serialObject

Returns the value of attribute serial.



7
8
9
# File 'lib/android-adb/Device.rb', line 7

def serial
  @serial
end