Class: Rhoconnect::StoreOrm::Marshal::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/rhoconnect/store_orm.rb

Class Method Summary collapse

Class Method Details

.dump(v) ⇒ Object



264
265
266
# File 'lib/rhoconnect/store_orm.rb', line 264

def self.dump(v)
  ::JSON.dump(v)
end

.load(v) ⇒ Object



268
269
270
# File 'lib/rhoconnect/store_orm.rb', line 268

def self.load(v)
  v && ::JSON.load(v)
end