-
-
Save yogendra689/54a9854ad2fed2429410 to your computer and use it in GitHub Desktop.
marshalling data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@user = | |
#<User:0xc517c80 @assigned_sold={},@assigned_ship={}, @assigned_payer={}, @assigned_territories={}, | |
@assigned_sales_areas=["abc"], @sold_to=[], @ship_to=[], @payer=[], @db_user=#<DbUser id: 5, date_format: "%m/%d/%Y", number_format: ".,", language: "en_US", time_format: "%I:%M:%S %p", user_type: "system_admin", active: true, complete: true, order_search_default: nil, invoice_search_default: nil, closed_news_id: nil, password_change_date: "2014-05-16", approver_email: nil, saved_return_id: nil, saved_quote_id: nil, saved_rfq_id: nil>, @sales_types={"ws"=>{:create_doc=>true, :change_doc=>true, :change_pricing=>true}, "ui"=>{:create_doc=>true, :change_doc=>true, :change_pricing=>true}, "io"=>{:create_doc=>true, :change_doc=>true, :change_pricing=>true}}> | |
data = PassingData.serialize @user | |
BAhvOglVc2VyHzoXQGFzc2lnbmVkX3NvbGRfdG9zewA6F0Bhc3NpZ25lZF9z\n aGlwX3Rvc3sAOhVAYXNzaWduZWRfcGF5ZXJzewA6GkBhc3NpZ25lZF90ZXJy\n aXRvcmllc3sAOhpAYXNzaWduZWRfc2FsZXNfYXJlYXNbCUkiDTMwMDAxMDAw\n BjoGRVRJIg0zMDAwMTIwMAY7C1RJIg0zMDAwMTQwMAY7C1RJIg0xMDAwMTAw\n MAY7C1Q6DkBzb2xkX3Rvc1sAOg5Ac2hpcF90b3NbADoMQHBheWVyc1sAOg9A\n c2hvd19uZXdzVDoZQHNlbmRfZ29vZ2xlX3VzZXJfaWRGOg1AZGJfdXNlcm86\n C0RiVXNlchQ6EEBhdHRyaWJ1dGVzeypJIgdpZAY7C1RpCkkiDHVzZXJfaWQG\n OwtUSSIIYjJiBjsLVEkiDmxhc3RfbmFtZQY7C1RJIghiMmIGOwtUSSIPZmly\n c3RfbmFtZQY7C1RJIghiMmIGOwtUSSISZW1haWxfYWRkcmVzcwY7C1RJIh55\n b2dlbmRyYS50YWxhQGtpcHJvc2guY29tBjsLVEkiD2NyZWF0ZWRfYXQGOwtU\n | |
get_data = PassingData.deserialize(data) | |
#<User:0xc517c80 @assigned_sold={},@assigned_ship={}, @assigned_payer={}, @assigned_territories={}, | |
@assigned_sales_areas=["abc"], @sold_to=[], @ship_to=[], @payer=[], @db_user=#<DbUser id: 5, date_format: "%m/%d/%Y", number_format: ".,", language: "en_US", time_format: "%I:%M:%S %p", user_type: "system_admin", active: true, complete: true, order_search_default: nil, invoice_search_default: nil, closed_news_id: nil, password_change_date: "2014-05-16", approver_email: nil, saved_return_id: nil, saved_quote_id: nil, saved_rfq_id: nil>, @sales_types={"ws"=>{:create_doc=>true, :change_doc=>true, :change_pricing=>true}, "ui"=>{:create_doc=>true, :change_doc=>true, :change_pricing=>true}, "io"=>{:create_doc=>true, :change_doc=>true, :change_pricing=>true}}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment