On Tuesday, March 17, 2015 at 8:01:13 AM UTC-7, Jon Mattingly wrote: > > I'm sorry if this is a dumb question, but is there a simple way to get a > ruby array of the values mapped to a Sequel::Model object without having to > manually construct it? I'm using Grape with Sequel and it is just returning > the Sequel object. >
If you just want the hash of values for a Sequel::Model instance, call #to_hash. I'm not sure why you would need an array of just the values without the keys, but to_hash.values should work for that, at least on ruby 1.9+ where hashes are ordered. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
