Sha256: d12cde75dd5eba9d9bf726ba47b7fec50753d2364f631f3402fa6de51e95b57e
Contents?: true
Size: 562 Bytes
Versions: 2
Compression:
Stored size: 562 Bytes
Contents
load 'lib/chicrime.rb' c = Chicrime::Dataset.new #results = c.client.get(c.dataset_id, {"$where" => "year = 2014 AND ward = 15", # "$order" => "id DESC", # "$select" => "ward, id, year", # "$limit" => "6"}) #results = c.where("year = 2014 AND ward = 15").order(:id, :desc).select(:ward, :id, :year).limit(6).results results = c.query do where do year equals 2014 ward equals 15 end order :id, :desc limit 1 end puts results
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chicrime-0.2.2 | example.rb |
chicrime-0.2.1 | example.rb |