Module: CaRuby::JSON::Serializer
- Defined in:
- lib/caruby/json/serializer.rb
Overview
Jinx::Resource => JSON serializer.
Instance Method Summary collapse
-
#to_json(*args) ⇒ String
The JSON representation of this Jinx::Resource.
Instance Method Details
#to_json(*args) ⇒ String
Returns the JSON representation of this Jinx::Resource.
7 8 9 10 11 12 13 14 |
# File 'lib/caruby/json/serializer.rb', line 7 def to_json(*args) database.lazy_loader.disable do { 'json_class' => json_class_name, 'data' => json_value_hash }.to_json(*args) end end |