Method: Charging::Collection#load_data_with_response!
- Defined in:
- lib/charging/collection.rb
#load_data_with_response! ⇒ Object
:nodoc:
22 23 24 25 26 27 |
# File 'lib/charging/collection.rb', line 22 def load_data_with_response! # :nodoc: return [] if last_response.code != 200 raw_lines = MultiJson.decode(last_response.body) raw_lines.map { |raw_line| load_object_with(raw_line) } end |