{"action":"closed","issue":{"url":"https://api.github.com/repos/kubo/ruby-oci8/issues/119","repository_url":"https://api.github.com/repos/kubo/ruby-oci8","labels_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/119/comments","events_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/119/events","html_url":"https://github.com/kubo/ruby-oci8/issues/119","id":140488070,"number":119,"title":"How to map results of following function in ruby?","user":{"login":"jgebal","id":1398171,"avatar_url":"https://avatars.githubusercontent.com/u/1398171?v=3","gravatar_id":"","url":"https://api.github.com/users/jgebal","html_url":"https://github.com/jgebal","followers_url":"https://api.github.com/users/jgebal/followers","following_url":"https://api.github.com/users/jgebal/following{/other_user}","gists_url":"https://api.github.com/users/jgebal/gists{/gist_id}","starred_url":"https://api.github.com/users/jgebal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgebal/subscriptions","organizations_url":"https://api.github.com/users/jgebal/orgs","repos_url":"https://api.github.com/users/jgebal/repos","events_url":"https://api.github.com/users/jgebal/events{/privacy}","received_events_url":"https://api.github.com/users/jgebal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-13T14:06:05Z","updated_at":"2016-03-27T10:57:54Z","closed_at":"2016-03-27T10:57:54Z","body":"I'd like to be able to map objects returned by this function, any clues on how to do it in ryby, assuming that the base object can have many child objects?\r\n```sql\r\ncreate or replace type foo as object (\r\n   dummy integer\r\n) not final;\r\n\r\ncreate or replace type bar under foo (\r\n   text varchar2(100)\r\n);\r\n\r\ncreate or replace function get_object( use_bar boolean :=false ) return foo is\r\n   begin\r\n      return\r\n         case\r\n            when use_bar\r\n            then bar(1,'bar')\r\n            else foo(1)\r\n            --and more coming\r\n         end;\r\n   end;\r\n```\r\n\r\nAny help and advice will be appreciated."}}