Class: TypicalSort::SortDefinition
- Inherits:
-
Struct
- Object
- Struct
- TypicalSort::SortDefinition
- Defined in:
- lib/typical_sort/sort_definition.rb
Instance Attribute Summary collapse
-
#aggregate ⇒ Object
Returns the value of attribute aggregate.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nulls ⇒ Object
Returns the value of attribute nulls.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
Instance Attribute Details
#aggregate ⇒ Object
Returns the value of attribute aggregate
4 5 6 |
# File 'lib/typical_sort/sort_definition.rb', line 4 def aggregate @aggregate end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/typical_sort/sort_definition.rb', line 4 def name @name end |
#nulls ⇒ Object
Returns the value of attribute nulls
4 5 6 |
# File 'lib/typical_sort/sort_definition.rb', line 4 def nulls @nulls end |
#scope ⇒ Object
Returns the value of attribute scope
4 5 6 |
# File 'lib/typical_sort/sort_definition.rb', line 4 def scope @scope end |
Instance Method Details
#aggregate? ⇒ Boolean
9 10 11 |
# File 'lib/typical_sort/sort_definition.rb', line 9 def aggregate? !aggregate.nil? end |
#key ⇒ Object
5 6 7 |
# File 'lib/typical_sort/sort_definition.rb', line 5 def key name.to_s end |
#scope? ⇒ Boolean
13 14 15 |
# File 'lib/typical_sort/sort_definition.rb', line 13 def scope? scope == true end |