Class: Browser::Event::DeviceMotion::Acceleration

Inherits:
Struct
  • Object
show all
Defined in:
opal/browser/event/device_motion.rb

Instance Attribute Summary collapse

Instance Attribute Details

#x ⇒ Object

Returns the value of attribute x

Returns:

  • (Object) —

    the current value of x



12
13
14
# File 'opal/browser/event/device_motion.rb', line 12

def x
  @x
end

#y ⇒ Object

Returns the value of attribute y

Returns:

  • (Object) —

    the current value of y



12
13
14
# File 'opal/browser/event/device_motion.rb', line 12

def y
  @y
end

#z ⇒ Object

Returns the value of attribute z

Returns:

  • (Object) —

    the current value of z



12
13
14
# File 'opal/browser/event/device_motion.rb', line 12

def z
  @z
end