Class: Struct

Inherits:
Object show all
Defined in:
lib/active_support/json/encoding.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object


155
156
157
# File 'lib/active_support/json/encoding.rb', line 155

def as_json(options = nil)
  Hash[members.zip(values)]
end