Class: Gush::JSON
- Inherits:
-
Object
- Object
- Gush::JSON
- Defined in:
- lib/gush/json.rb
Class Method Summary collapse
Class Method Details
.decode(data, options = {}) ⇒ Object
7 8 9 |
# File 'lib/gush/json.rb', line 7 def self.decode(data, = {}) MultiJson.load(data, ) end |
.encode(data) ⇒ Object
3 4 5 |
# File 'lib/gush/json.rb', line 3 def self.encode(data) MultiJson.dump(data) end |