Class: Smartcar::EngineOil

Inherits:
Base
  • Object
show all
Defined in:
lib/smartcar/engine_oil.rb

Overview

class to represent Engine oil info

Constant Summary collapse

PATH =

Path Proc for hitting engine oil end point

Proc.new{|id| "/vehicles/#{id}/engine/oil"}

Constants inherited from Base

Base::BASIC, Base::BEARER

Instance Attribute Summary collapse

Attributes inherited from Base

#error, #meta, #token

Method Summary

Methods inherited from Base

#fetch

Methods included from Utils

#get_config, #get_error, #initialize

Instance Attribute Details

#lifeRemainingNumber Also known as: life_remaining

Remaining life of the engine oil

Returns:

  • (Number)

    the current value of lifeRemaining



4
5
6
# File 'lib/smartcar/engine_oil.rb', line 4

def lifeRemaining
  @lifeRemaining
end