Class: Ruze::Car
- Inherits:
-
Object
- Object
- Ruze::Car
- Defined in:
- lib/ruze/car.rb
Instance Method Summary collapse
- #battery ⇒ Object
- #cockpit ⇒ Object
-
#initialize(email, password, vin = nil, device: Ruze::Device.new) ⇒ Car
constructor
A new instance of Car.
- #location ⇒ Object
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
#battery ⇒ Object
11 12 13 |
# File 'lib/ruze/car.rb', line 11 def battery @kamereon.battery end |
#cockpit ⇒ Object
15 16 17 |
# File 'lib/ruze/car.rb', line 15 def cockpit @kamereon.cockpit end |
#location ⇒ Object
19 20 21 |
# File 'lib/ruze/car.rb', line 19 def location @kamereon.location end |