Executing multiple services
I have an issue where I need to extract data from two different URL's for the same company.
Calling a new service, sending the service name and executing the query works fine for the first URL.
When running a second one ( With a new URL ), the execute method tries to retrieve the data still from the first URL, although the field names are now different in the 2nd one.
/usr/local/rvm/gems/ruby-2.4.0/gems/ruby_odata-0.1.0/lib/ruby_odata/service.rb:376:in
block in entry_to_class': undefined methodINSite_Formulaa0129565ae50e71181a00aec8e401db6=' for #NSco:0x000000033b0cd8 (NoMethodError)
I suspect it's to do with the dynamic creation of the instance variables via the instance_variable_names method.
When checking the edmx for both, they are indeed different.
Any suggestions to get this working? Thanks.
Thanks for reporting this bug. I'll check it out today.
Thank you very much!
@emilekukkuk Does this happen with the current version in the develop branch?
I checked in a spec for this in the develop branch.
Thank you so much. Sorry I haven't checked in a for while. Was in a hurry and used another component.
I'll see if I can test the new commit.
Is this fixed in any of the versions > 0.1.0 ?
@karolkulesza - Check the develop branch out, it should have changes for this
@visoft : Thanks for the feedback.
Unfortunately, using the latest version from develop I have the same issue, still.