Class: MemoryDb::Sort
- Inherits:
-
Object
- Object
- MemoryDb::Sort
- Defined in:
- lib/memorydb/sort.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
Instance Method Summary collapse
-
#initialize(field, order) ⇒ Sort
constructor
A new instance of Sort.
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
#field ⇒ Object (readonly)
Returns the value of attribute field.
4 5 6 |
# File 'lib/memorydb/sort.rb', line 4 def field @field end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
4 5 6 |
# File 'lib/memorydb/sort.rb', line 4 def order @order end |