Class: Smartcar::Base
Overview
The Base class for all of the other class. Let other classes inherit from here and put common methods here.
Direct Known Subclasses
Defined Under Namespace
Classes: InvalidParameterValue
Constant Summary collapse
- BASIC =
Constant for Basic auth type
'Basic'
Instance Attribute Summary collapse
-
#auth_type ⇒ Object
Returns the value of attribute auth_type.
-
#error ⇒ Object
Returns the value of attribute error.
-
#token ⇒ Object
Returns the value of attribute token.
-
#unit_system ⇒ Object
Returns the value of attribute unit_system.
-
#url ⇒ Object
Returns the value of attribute url.
-
#version ⇒ Object
Returns the value of attribute version.
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_type ⇒ Object
Returns the value of attribute auth_type.
17 18 19 |
# File 'lib/smartcar/base.rb', line 17 def auth_type @auth_type end |
#error ⇒ Object
Returns the value of attribute error.
17 18 19 |
# File 'lib/smartcar/base.rb', line 17 def error @error end |
#token ⇒ Object
Returns the value of attribute token.
17 18 19 |
# File 'lib/smartcar/base.rb', line 17 def token @token end |
#unit_system ⇒ Object
Returns the value of attribute unit_system.
17 18 19 |
# File 'lib/smartcar/base.rb', line 17 def unit_system @unit_system end |
#url ⇒ Object
Returns the value of attribute url.
17 18 19 |
# File 'lib/smartcar/base.rb', line 17 def url @url end |
#version ⇒ Object
Returns the value of attribute version.
17 18 19 |
# File 'lib/smartcar/base.rb', line 17 def version @version end |