Method: Response#model
- Defined in:
- lib/response.rb
#model(path) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/response.rb', line 10 def model(path) @resp = JSON.parse(@resp.body) case path when :signin token when :linhas linhas when :veiculos veiculos when :veiculos_linha veiculos_linha when :paradas paradas when :paradas_linha paradas_linha end end |