visoft / ruby_odata

OData Consumer for Ruby
http://bit.ly/IntroRubyOData
MIT License
107 stars 52 forks source link

Added support for query by id when type is Edm.Int64 #40

Closed nasali closed 10 years ago

nasali commented 10 years ago

Hello - So I took a stab at making query requests use Products(3L) when querying against a service with long typed keys.

Thanks!

coveralls commented 10 years ago

Coverage Status

Coverage decreased (-0.34%) when pulling 81956706bcb17841af79e7c6a1c6db3d792b59c8 on nasali:master into 763d054fe34d575c626e817aa128c5522c72d144 on visoft:master.

coveralls commented 10 years ago

Coverage Status

Coverage increased (+0.07%) when pulling db3cef54847099fe25cba93ff7b4cb817527bb53 on nasali:master into 763d054fe34d575c626e817aa128c5522c72d144 on visoft:master.

visoft commented 10 years ago

I merged your changes into the develop branch, and I made it a little better in that we now know what the keys are for the classes. I also changed your tests a bit and made it so that any ID property name would be handled for Int64 requests. Feel free to make any changes that you see fit.