Class: RAWS::SDB::Model::Select

Inherits:
Select
  • Object
show all
Defined in:
lib/raws/sdb/model.rb

Constant Summary

Constants inherited from Select

Select::RESERVED_KEYWORD

Instance Method Summary collapse

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