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'}).where({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
Why two lines of attr_accessor?