Module: Timescaledb::ActsAsTimeVector
- Defined in:
- lib/timescaledb/acts_as_time_vector.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_time_vector(options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/timescaledb/acts_as_time_vector.rb', line 3 def acts_as_time_vector( = {}) return if acts_as_time_vector? include Timescaledb::Toolkit::TimeVector class_attribute :time_vector_options, instance_writer: false define_default_scopes self. = end |
#acts_as_time_vector? ⇒ Boolean
13 14 15 |
# File 'lib/timescaledb/acts_as_time_vector.rb', line 13 def acts_as_time_vector? included_modules.include?(Timescaledb::ActsAsTimeVector) end |