I have a soap mapping object which has been returned by betfair:- irb(main):026:0> response.result.eventTypeItems.eventType[0] => #<SOAP::Mapping::Object:0x..fdbc5d734 {}id="6423" {}name="American Football" {}nextMarketId="0" {}exchangeId="0"> I can extract everything from the above object except the id column i.e.:- irb(main):027:0> response.result.eventTypeItems.eventType[0].name => "American Football" irb(main):028:0> response.result.eventTypeItems.eventType[0].nextMarketId => "0" irb(main):029:0> response.result.eventTypeItems.eventType[0].exchangeId => "0" irb(main):030:0> response.result.eventTypeItems.eventType[0].id (irb):30: warning: Object#id will be deprecated; use Object#object_id => -607791308 irb(main):031:0> Trying to extract the id column gives me a warning message and completely the wrong value. How do I get the value of the id attribute please? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---