Class: Factbase::Tallied::Fact

Inherits:
Object
  • Object
show all
Defined in:
lib/factbase/tallied.rb

Overview

Fact decorator.

This is an internal class, it is not supposed to be instantiated directly.

Instance Method Summary collapse

Constructor Details

#initialize(fact, churn) ⇒ Fact

Returns a new instance of Fact.



58
59
60
61
# File 'lib/factbase/tallied.rb', line 58

def initialize(fact, churn)
  @fact = fact
  @churn = churn
end

Instance Method Details

#all_propertiesObject



67
68
69
# File 'lib/factbase/tallied.rb', line 67

def all_properties
  @fact.all_properties
end

#to_sObject



63
64
65
# File 'lib/factbase/tallied.rb', line 63

def to_s
  @fact.to_s
end