Class: Flipper::Serializers::Json
- Inherits:
-
Object
- Object
- Flipper::Serializers::Json
- Defined in:
- lib/flipper/serializers/json.rb
Class Method Summary collapse
Class Method Details
.deserialize(source) ⇒ Object
11 12 13 14 |
# File 'lib/flipper/serializers/json.rb', line 11 def self.deserialize(source) return if source.nil? JSON.parse(source) end |
.serialize(source) ⇒ Object
6 7 8 9 |
# File 'lib/flipper/serializers/json.rb', line 6 def self.serialize(source) return if source.nil? JSON.generate(source) end |