Method: Papapi::Response#to_h
- Defined in:
- lib/papapi/response.rb
#to_h ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/papapi/response.rb', line 32 def to_h h = {} parsed.each_with_index do |p, index| next if index == 0 h[p[0].to_sym] = p[1] end h end |