module Class2::SnakeCase::JSON
Create JSON
documents that have snake_case
properties. This will add as_json
and to_json
methods.
Public Instance Methods
as_json(*)
click to toggle source
# File lib/class2.rb, line 354 def as_json(*) Util.as_json(self, :underscore) end
to_json(*argz)
click to toggle source
# File lib/class2.rb, line 358 def to_json(*argz) as_json.to_json(*argz) end