Class: CarvoyantAPI::VehicleJsonFormatter
- Inherits:
-
Object
- Object
- CarvoyantAPI::VehicleJsonFormatter
- Includes:
- ActiveResource::Formats::JsonFormat
- Defined in:
- lib/carvoyant_api/resources/vehicle.rb
Instance Method Summary collapse
Instance Method Details
#decode(json) ⇒ Object
5 6 7 |
# File 'lib/carvoyant_api/resources/vehicle.rb', line 5 def decode(json) ActiveSupport::JSON.decode(json)['vehicle'] end |