Module: Appium::Core::Android::Device::Authentication

Defined in:
lib/appium_lib_core/android/device/auth_finger_print.rb

Class Method Summary collapse

Class Method Details

.add_methodsObject



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/appium_lib_core/android/device/auth_finger_print.rb', line 20

def self.add_methods
  ::Appium::Core::Device.add_endpoint_method(:finger_print) do
    def finger_print(finger_id)
      unless (1..10).cover? finger_id.to_i
        raise ::Appium::Core::Error::ArgumentError,
              "finger_id should be integer between 1 to 10. Not #{finger_id}"
      end

      execute(:finger_print, {}, { fingerprintId: finger_id.to_i })
    end
  end
end