Class: Smartcar::Base

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/smartcar/base.rb

Overview

The Base class for all of the other class. Let other classes inherit from here and put common methods here.

Direct Known Subclasses

Vehicle

Defined Under Namespace

Classes: InvalidParameterValue

Constant Summary collapse

BASIC =

Constant for Basic auth type

'Basic'

Instance Attribute Summary collapse

Method Summary

Methods included from Utils

#build_aliases, #build_error, #build_meta, #build_response, #convert_path_to_attribute, #determine_mode, #get_config, #handle_error, #initialize, #json_to_ostruct, #process_batch_response, #stringify_params

Instance Attribute Details

#auth_typeObject

Returns the value of attribute auth_type.



17
18
19
# File 'lib/smartcar/base.rb', line 17

def auth_type
  @auth_type
end

#errorObject

Returns the value of attribute error.



17
18
19
# File 'lib/smartcar/base.rb', line 17

def error
  @error
end

#tokenObject

Returns the value of attribute token.



17
18
19
# File 'lib/smartcar/base.rb', line 17

def token
  @token
end

#unit_systemObject

Returns the value of attribute unit_system.



17
18
19
# File 'lib/smartcar/base.rb', line 17

def unit_system
  @unit_system
end

#urlObject

Returns the value of attribute url.



17
18
19
# File 'lib/smartcar/base.rb', line 17

def url
  @url
end

#versionObject

Returns the value of attribute version.



17
18
19
# File 'lib/smartcar/base.rb', line 17

def version
  @version
end