Method: Carquery.get_trim
- Defined in:
- lib/carquery/dsl/get_trim.rb
.get_trim(id) ⇒ Object
Returns car model trim by specified id Input: auto make code Optional params: none Usage:
Carquery.get_trim 12343 => #<struct Carquery::Trim id=12343, title="Tempra", make_code="fiat", trim="1.6", ...>
10 11 12 13 |
# File 'lib/carquery/dsl/get_trim.rb', line 10 def get_trim id response = request 'getModel', model: id Trim.build response end |