Class: VinQuery::TrimLevel

Inherits:
Object
  • Object
show all
Defined in:
lib/vin_query/trim_level.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vin, attributes) ⇒ TrimLevel

Returns a new instance of TrimLevel.



5
6
7
8
9
# File 'lib/vin_query/trim_level.rb', line 5

def initialize(vin, attributes)
  @vin = vin
  @attributes = attributes
  @trim_level = attributes[:trim_level]
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



3
4
5
# File 'lib/vin_query/trim_level.rb', line 3

def attributes
  @attributes
end

#trim_levelObject (readonly)

Returns the value of attribute trim_level.



3
4
5
# File 'lib/vin_query/trim_level.rb', line 3

def trim_level
  @trim_level
end

#vinObject (readonly)

Returns the value of attribute vin.



3
4
5
# File 'lib/vin_query/trim_level.rb', line 3

def vin
  @vin
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/vin_query/trim_level.rb', line 11

def to_s
  "#{@vin} - #{@trim_level}"
end