Class: Smartcar::VehicleAttributes
- Defined in:
- lib/smartcar/vehicle_attributes.rb
Overview
class to represent Vehicle attributes like make model year
Constant Summary collapse
- PATH =
Path Proc for hitting vehicle attributes end point
Proc.new{|id| "/vehicles/#{id}"}
Constants inherited from Base
Instance Attribute Summary collapse
-
#id ⇒ String
Smartcar vehicle ID.
-
#make ⇒ String
Manufacturer of the vehicle.
-
#model ⇒ String
Model of the vehicle.
-
#year ⇒ Number
Model year of the vehicle.
Attributes inherited from Base
Method Summary
Methods inherited from Base
Methods included from Utils
#get_config, #get_error, #initialize
Instance Attribute Details
#id ⇒ String
Smartcar vehicle ID
7 8 9 |
# File 'lib/smartcar/vehicle_attributes.rb', line 7 def id @id end |
#make ⇒ String
Manufacturer of the vehicle.
7 8 9 |
# File 'lib/smartcar/vehicle_attributes.rb', line 7 def make @make end |
#model ⇒ String
Model of the vehicle.
7 8 9 |
# File 'lib/smartcar/vehicle_attributes.rb', line 7 def model @model end |
#year ⇒ Number
Model year of the vehicle.
7 8 9 |
# File 'lib/smartcar/vehicle_attributes.rb', line 7 def year @year end |