Class: Hash

Inherits:
Object show all
Defined in:
lib/fifadat/convert.rb

Instance Method Summary collapse

Instance Method Details

#as_json ⇒ Object



27
28
29
30
31
# File 'lib/fifadat/convert.rb', line 27

def as_json(*)
  each_with_object({}) do |(k, v), h|
    h[k.to_s] = v.as_json
  end
end