Class: MemoryDb::Sort

Inherits:
Object
  • Object
show all
Defined in:
lib/memorydb/sort.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field, order) ⇒ Sort

Returns a new instance of Sort.



6
7
8
9
# File 'lib/memorydb/sort.rb', line 6

def initialize(field, order)
  @field = field
  @order = order
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



4
5
6
# File 'lib/memorydb/sort.rb', line 4

def field
  @field
end

#orderObject (readonly)

Returns the value of attribute order.



4
5
6
# File 'lib/memorydb/sort.rb', line 4

def order
  @order
end