Class: VinQuery::TrimLevel
- Inherits:
-
Object
- Object
- VinQuery::TrimLevel
- Defined in:
- lib/vin_query/trim_level.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#trim_level ⇒ Object
readonly
Returns the value of attribute trim_level.
-
#vin ⇒ Object
readonly
Returns the value of attribute vin.
Instance Method Summary collapse
-
#initialize(vin, attributes) ⇒ TrimLevel
constructor
A new instance of TrimLevel.
- #to_s ⇒ Object
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
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/vin_query/trim_level.rb', line 3 def attributes @attributes end |
#trim_level ⇒ Object (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 |
#vin ⇒ Object (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_s ⇒ Object
11 12 13 |
# File 'lib/vin_query/trim_level.rb', line 11 def to_s "#{@vin} - #{@trim_level}" end |