Module: Groupdate
- Defined in:
- lib/groupdate2.rb,
lib/groupdate/magic.rb,
lib/groupdate/version.rb,
lib/groupdate/relation.rb,
lib/groupdate/query_methods.rb,
lib/groupdate/series_builder.rb,
lib/groupdate/relation_builder.rb,
lib/groupdate/sql_server_group_clause.rb
Defined Under Namespace
Modules: QueryMethods, Relation, RelationRecords, SqlServerGroupClause Classes: Error, Magic, RelationBuilder, SeriesBuilder
Constant Summary collapse
- PERIODS =
[:second, :minute, :hour, :day, :week, :month, :quarter, :year, :day_of_week, :hour_of_day, :minute_of_hour, :day_of_month, :day_of_year, :month_of_year]
- METHODS =
PERIODS.map { |v| :"group_by_#{v}" } + [:group_by_period]
- VERSION =
"5.0.0"
Class Method Summary collapse
-
.process_result(relation, result, **options) ⇒ Object
api for gems like ActiveMedian.
- .process_series_label(relation, result) ⇒ Object
Class Method Details
.process_result(relation, result, **options) ⇒ Object
api for gems like ActiveMedian
23 24 25 26 27 28 |
# File 'lib/groupdate2.rb', line 23 def self.process_result(relation, result, **) if relation.groupdate_values result = Groupdate::Magic::Relation.process_result(relation, result, **) end result end |
.process_series_label(relation, result) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/groupdate2.rb', line 30 def self.process_series_label(relation, result) if relation.groupdate_values result = Groupdate::Magic::Relation.process_series_label(relation, result) end result end |