Class: Burstflow::Workflow::Configuration::JSONBWithIndifferentAccess
- Inherits:
-
Object
- Object
- Burstflow::Workflow::Configuration::JSONBWithIndifferentAccess
- Defined in:
- lib/burstflow/workflow/configuration.rb
Class Method Summary collapse
Class Method Details
.dump(hash) ⇒ Object
9 10 11 |
# File 'lib/burstflow/workflow/configuration.rb', line 9 def self.dump(hash) hash.as_json end |
.load(hash) ⇒ Object
13 14 15 16 17 |
# File 'lib/burstflow/workflow/configuration.rb', line 13 def self.load(hash) hash ||= {} hash = JSON.parse(hash) if hash.is_a? String hash.with_indifferent_access end |