module DataSteroid::Criteria::Findable

Defines behaviour for find operations.

Public Instance Methods

find(id, parent: nil) click to toggle source
# File lib/data_steroid/criteria/findable.rb, line 8
def find(id, parent: nil)
  run query.where('__key__', '=', gcloud_key(id.to_i, parent: parent))
end