-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Look our helper method:
https://github.com/bulutfon/ruby-sdk/blob/develop/lib/bulutfon_sdk/helpers/data_helper.rb
a = {
'user' =>{
'email' => 'test@bulutfon.com', 'name' => 'BULUTFON', 'gsm' => 'XXXXXXXXXXXX'
},
'pbx' =>{
'name' => 'test', 'url' => 'test.com', 'state' => 'CONFIRMED', 'package' => 'ENTERPRISE', 'customer_type' => 'CORPORATE'
},
'credit' =>{
'balance' => '306.32', 'sms_credit' => 0
},
'list' => [
{'a'=> 'a1', 'b'=> 'b1'},
{'a'=> 'a2', 'b'=> 'b2'},
{'a'=> 'a3', 'b'=> {'bb'=> 'bb1', 'cc'=> 'bb2'}},
{'a'=> 'a3', 'b'=> [
{'bb'=> 'bb1', 'cc'=> 'bb2'},
{'bb'=> 'bb1', 'cc'=> 'bb2'}
]},
]
}
b = convert_to_obj(a)
puts b.list.last.b.last.cc
puts b.list[2].b.bbMetadata
Metadata
Assignees
Labels
No labels