Class: NxtSupport::IndifferentlyAccessibleJsonAttrs::JsonSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/nxt_support/models/indifferently_accessible_json_attrs.rb

Class Method Summary collapse

Class Method Details

.dump(obj) ⇒ Object



11
12
13
# File 'lib/nxt_support/models/indifferently_accessible_json_attrs.rb', line 11

def dump(obj)
  JSON.dump(obj)
end

.load(str) ⇒ Object



7
8
9
# File 'lib/nxt_support/models/indifferently_accessible_json_attrs.rb', line 7

def load(str)
  indifferent_accessable(JSON.load(str))
end