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?