Class: PuzzlyApiPlugin::JSONable
- Inherits:
-
Hash
- Object
- Hash
- PuzzlyApiPlugin::JSONable
- Defined in:
- lib/puzzly_api_plugin/jsonable.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#copy_to_hash(hash) ⇒ Object
5 6 7 8 9 |
# File 'lib/puzzly_api_plugin/jsonable.rb', line 5 def copy_to_hash(hash) each do |key, value| hash.store(key, value) end end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/puzzly_api_plugin/jsonable.rb', line 11 def to_s to_json end |