Deserialize object back into Ruby OpenStruct