Class: RAWS::SDB::Model::Select
Constant Summary
Constants inherited from Select
Instance Method Summary collapse
- #attr_filter(val) ⇒ Object
-
#initialize(model) ⇒ Select
constructor
A new instance of Select.
Methods inherited from Select
#columns, #each, #from, #get, #limit, #order, #to_sql, #where
Constructor Details
#initialize(model) ⇒ Select
Returns a new instance of Select.
6 7 8 9 |
# File 'lib/raws/sdb/model.rb', line 6 def initialize(model) super() @model = model end |
Instance Method Details
#attr_filter(val) ⇒ Object
11 12 13 |
# File 'lib/raws/sdb/model.rb', line 11 def attr_filter(val) @model.new(val.last, val.first, true) end |