jmmastey/level_up_exercises — pull request #227 by TylerBre (2014-11-05 22:52:30+00:00)
Title: Tyler Breland: Dinodex solution

instantiate with m = DinoDex.new()

query by

m.where({continent: 'Africa'})

chain with

m.where({continent: 'Africa'}).limit(3).sort('name')

advanced operations (<, >, >=, <=, ==)

m.where({continent: 'Africa', weight_in_lbs: {'<' => 1000}}).limit(3)

format with

m.where({continent: 'Africa', weight_in_lbs: {'<' => 1000}}).limit(3).pretty
m.where({continent: 'Africa', weight_in_lbs: {'<' => 1000}}).limit(3).to_json