Class: ActivityEngine::Statistic
- Inherits:
-
Object
- Object
- ActivityEngine::Statistic
- Defined in:
- app/models/activity_engine/statistic.rb
Instance Attribute Summary collapse
-
#activity_type ⇒ Object
Returns the value of attribute activity_type.
-
#count ⇒ Object
Returns the value of attribute count.
-
#last_activity_date ⇒ Object
Returns the value of attribute last_activity_date.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(subject, opts) ⇒ Statistic
constructor
A new instance of Statistic.
Constructor Details
#initialize(subject, opts) ⇒ Statistic
Returns a new instance of Statistic.
5 6 7 8 9 10 |
# File 'app/models/activity_engine/statistic.rb', line 5 def initialize(subject, opts) @subject = subject opts.each_pair do |key, value| send("#{key}=", value) end end |
Instance Attribute Details
#activity_type ⇒ Object
Returns the value of attribute activity_type.
3 4 5 |
# File 'app/models/activity_engine/statistic.rb', line 3 def activity_type @activity_type end |
#count ⇒ Object
Returns the value of attribute count.
3 4 5 |
# File 'app/models/activity_engine/statistic.rb', line 3 def count @count end |
#last_activity_date ⇒ Object
Returns the value of attribute last_activity_date.
3 4 5 |
# File 'app/models/activity_engine/statistic.rb', line 3 def last_activity_date @last_activity_date end |
#subject ⇒ Object
Returns the value of attribute subject.
3 4 5 |
# File 'app/models/activity_engine/statistic.rb', line 3 def subject @subject end |