I have a function like below:
def test
{
testId: self.test_id,
testTime: self.test_time,
testType: self.test_type,
city: self.city
......... many such variables
}
end
I'm wondering if there is a nice way to rewrite this piece. I would like to know what would be the best thing to do.