Method: RockRMS::Response::Base#to_h
- Defined in:
- lib/rock_rms/response/base.rb
#to_h(dict, data) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/rock_rms/response/base.rb', line 22 def to_h(dict, data) return {} if data.nil? dict.each_with_object({}) do |(l, r), object| object[l] = data[r] end end |