sparkapi / spark_api

Ruby client library for communication with the Spark API
http://sparkplatform.com/docs/overview/api
Other
55 stars 35 forks source link

Possible implementation for find_one #35

Closed longlostnick closed 11 years ago

longlostnick commented 11 years ago

https://github.com/sparkapi/spark_api/blob/master/lib/spark_api/models/finders.rb#L33

Could we just implement that to do the same thing as find except pass _limit: 1? That might make for some speedier requests in some cases.

Edit: also I can add this to my fork if it makes sense so we can go ahead and start using it.

wlmcewen commented 11 years ago

Yes, if you already have a use case, please go ahead and implement as needed.

longlostnick commented 11 years ago

This is covered by 373ffc0a619e3193b7427cbd86f8544e9932abdc