Module: Timescaledb::Toolkit::TimeVector::ClassMethods

Defined in:
lib/timescaledb/toolkit/time_vector.rb

Instance Method Summary collapse

Instance Method Details

#segment_by_columnObject



19
20
21
# File 'lib/timescaledb/toolkit/time_vector.rb', line 19

def segment_by_column
  time_vector_options[:segment_by]
end

#time_columnObject



15
16
17
# File 'lib/timescaledb/toolkit/time_vector.rb', line 15

def time_column
  respond_to?(:time_column) && super || time_vector_options[:time_column]
end

#value_columnObject



11
12
13
# File 'lib/timescaledb/toolkit/time_vector.rb', line 11

def value_column
  @value_column ||= time_vector_options[:value_column] || :val
end