Module: Smartcar

Defined in:
lib/smartcar.rb,
lib/smartcar/vin.rb,
lib/smartcar/base.rb,
lib/smartcar/fuel.rb,
lib/smartcar/user.rb,
lib/smartcar/oauth.rb,
lib/smartcar/charge.rb,
lib/smartcar/battery.rb,
lib/smartcar/vehicle.rb,
lib/smartcar/version.rb,
lib/smartcar/location.rb,
lib/smartcar/odometer.rb,
lib/smartcar/engine_oil.rb,
lib/smartcar/permissions.rb,
lib/smartcar/tire_pressure.rb,
lib/smartcar/vehicle_attributes.rb

Overview

Main Smartcar umbrella module

Defined Under Namespace

Classes: AuthenticationError, BadRequestError, Base, Battery, Charge, ConfigNotFound, EngineOil, ExternalServiceError, Fuel, Location, Oauth, Odometer, Permissions, ServiceUnavailableError, TirePressure, User, Vehicle, VehicleAttributes, Vin

Constant Summary collapse

API_VERSION =

Smartcar API version being used

"v1.0".freeze
SITE =

Host to connect to smartcar

"https://api.smartcar.com/".freeze
OAUTH_PATH =

Path for smartcar oauth

"https://connect.smartcar.com/oauth/authorize".freeze
LOCK =

Lock value sent in request body

"LOCK".freeze
UNLOCK =

Unlock value sent in request body

"UNLOCK".freeze
START_CHARGE =

Start charge value sent in request body

"START".freeze
STOP_CHARGE =

Stop charge value sent in request body

"STOP".freeze
UNITS =

Constant for units

[IMPERIAL,METRIC]
VERSION =

Gem current version number

"1.0.0"