Class: Appium::Location

Inherits:
Struct
  • Object
show all
Defined in:
lib/appium_lib_core/driver.rb,
sig/lib/appium_lib_core/driver.rbs

Overview

Struct for device location

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLocation

Returns a new instance of Location.

Parameters:

  • latitude (Float, Integer, String)
  • longitude (Float, Integer, String)
  • altitude (Float, Integer, String)


10
# File 'sig/lib/appium_lib_core/driver.rbs', line 10

def initialize: (Float | Integer | String latitude, Float | Integer | String longitude, Float | Integer | String altitude) -> void

Instance Attribute Details

#altitudeObject

Returns the value of attribute altitude

Returns:

  • (Object)

    the current value of altitude



22
23
24
# File 'lib/appium_lib_core/driver.rb', line 22

def altitude
  @altitude
end

#latitudeObject

Returns the value of attribute latitude

Returns:

  • (Object)

    the current value of latitude



22
23
24
# File 'lib/appium_lib_core/driver.rb', line 22

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude

Returns:

  • (Object)

    the current value of longitude



22
23
24
# File 'lib/appium_lib_core/driver.rb', line 22

def longitude
  @longitude
end