Class: Factbase::Tallied::Fact
- Inherits:
-
Object
- Object
- Factbase::Tallied::Fact
- 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
- #all_properties ⇒ Object
-
#initialize(fact, churn) ⇒ Fact
constructor
A new instance of Fact.
- #to_s ⇒ Object
Constructor Details
#initialize(fact, churn) ⇒ Fact
Returns a new instance of Fact.
48 49 50 51 |
# File 'lib/factbase/tallied.rb', line 48 def initialize(fact, churn) @fact = fact @churn = churn end |
Instance Method Details
#all_properties ⇒ Object
57 58 59 |
# File 'lib/factbase/tallied.rb', line 57 def all_properties @fact.all_properties end |
#to_s ⇒ Object
53 54 55 |
# File 'lib/factbase/tallied.rb', line 53 def to_s @fact.to_s end |