Class: Ruze::Car

Inherits:
Object
  • Object
show all
Defined in:
lib/ruze/car.rb

Instance Method Summary collapse

Constructor Details

#initialize(email, password, vin = nil, device: Ruze::Device.new) ⇒ Car

Returns a new instance of Car.



6
7
8
9
# File 'lib/ruze/car.rb', line 6

def initialize(email, password, vin = nil, device: Ruze::Device.new)
  gigya = Ruze::Gigya.new(email, password, device: device)
  @kamereon = Ruze::Kamereon.new(gigya.person_id, gigya.jwt, vin)
end

Instance Method Details

#batteryObject



11
12
13
# File 'lib/ruze/car.rb', line 11

def battery
  @kamereon.battery
end

#cockpitObject



15
16
17
# File 'lib/ruze/car.rb', line 15

def cockpit
  @kamereon.cockpit
end

#locationObject



19
20
21
# File 'lib/ruze/car.rb', line 19

def location
  @kamereon.location
end