Module: Axiom::Attribute::Comparable
- Includes:
- Axiom::Aggregate::Maximum::Methods, Axiom::Aggregate::Mean::Methods, Axiom::Aggregate::Minimum::Methods, Axiom::Aggregate::StandardDeviation::Methods, Axiom::Aggregate::Variance::Methods, Function::Predicate::GreaterThan::Methods, Function::Predicate::GreaterThanOrEqualTo::Methods, Function::Predicate::LessThan::Methods, Function::Predicate::LessThanOrEqualTo::Methods
- Defined in:
- lib/axiom/attribute/comparable.rb
Overview
A mixin for attributes that have comparable values
Instance Method Summary collapse
-
#asc ⇒ Relation::Operation::Order::Ascending
Sort the attribute in ascending order.
-
#desc ⇒ Relation::Operation::Order::Descending
Sort the attribute in descending order.
Methods included from Function::Predicate::GreaterThan::Methods
Methods included from Function::Predicate::GreaterThanOrEqualTo::Methods
Methods included from Function::Predicate::LessThan::Methods
Methods included from Function::Predicate::LessThanOrEqualTo::Methods
Methods included from Axiom::Aggregate::Minimum::Methods
Methods included from Axiom::Aliasable
Methods included from Axiom::Aggregate::Maximum::Methods
Methods included from Axiom::Aggregate::Mean::Methods
Methods included from Axiom::Aggregate::Variance::Methods
Methods included from Axiom::Aggregate::StandardDeviation::Methods
Instance Method Details
#asc ⇒ Relation::Operation::Order::Ascending
Sort the attribute in ascending order
26 27 28 |
# File 'lib/axiom/attribute/comparable.rb', line 26 def asc Relation::Operation::Order::Ascending.new(self) end |
#desc ⇒ Relation::Operation::Order::Descending
Sort the attribute in descending order
38 39 40 |
# File 'lib/axiom/attribute/comparable.rb', line 38 def desc Relation::Operation::Order::Descending.new(self) end |