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

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

Instance Attribute Summary collapse

Instance Attribute Details

#xObject

Returns the value of attribute x



8
9
10
# File 'lib/diamonds/opal/browser/event/device_motion.rb', line 8

def x
  @x
end

#yObject

Returns the value of attribute y



8
9
10
# File 'lib/diamonds/opal/browser/event/device_motion.rb', line 8

def y
  @y
end

#zObject

Returns the value of attribute z



8
9
10
# File 'lib/diamonds/opal/browser/event/device_motion.rb', line 8

def z
  @z
end