class Struct
Public Instance Methods
to_hash()
click to toggle source
Transform this struct into a JSON hash
# File lib/epitools/core_ext/misc.rb, line 114 def to_hash hash = {} each_pair { |k,v| hash[k] = v } hash end
to_json(*args)
click to toggle source
Transform the struct into a simple JSON hash.
# File lib/epitools/core_ext/misc.rb, line 123 def to_json(*args) to_hash.to_json end