Module: MongoMapper::Plugins::Serialization::ClassMethods

Defined in:
lib/mongo_mapper/plugins/serialization.rb

Instance Method Summary collapse

Instance Method Details

#from_json(json) ⇒ Object



87
88
89
# File 'lib/mongo_mapper/plugins/serialization.rb', line 87

def from_json(json)
  self.new.from_json(json)
end

#from_xml(xml) ⇒ Object



91
92
93
# File 'lib/mongo_mapper/plugins/serialization.rb', line 91

def from_xml(xml)
  self.new.from_xml(xml)
end