Module: Wonkavision::Plugins::Facts

Defined in:
lib/wonkavision/plugins/analytics/facts.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.configure(facts, options = {}) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/wonkavision/plugins/analytics/facts.rb', line 7

def self.configure(facts, options ={})
  facts.write_inheritable_attribute :facts_options, options
  facts.class_inheritable_reader :facts_options

  facts.write_inheritable_attribute :aggregations, []
  facts.class_inheritable_reader :aggregations
end