Class: Prato::Query::Sort
- Inherits:
-
Object
- Object
- Prato::Query::Sort
- Defined in:
- lib/prato/query/sort.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#is_desc ⇒ Object
readonly
Returns the value of attribute is_desc.
Instance Method Summary collapse
-
#initialize(field, is_desc) ⇒ Sort
constructor
A new instance of Sort.
Constructor Details
#initialize(field, is_desc) ⇒ Sort
Returns a new instance of Sort.
8 9 10 11 |
# File 'lib/prato/query/sort.rb', line 8 def initialize(field, is_desc) @field = field @is_desc = is_desc end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
6 7 8 |
# File 'lib/prato/query/sort.rb', line 6 def field @field end |
#is_desc ⇒ Object (readonly)
Returns the value of attribute is_desc.
6 7 8 |
# File 'lib/prato/query/sort.rb', line 6 def is_desc @is_desc end |