Class: GoalsUser
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- GoalsUser
- Defined in:
- app/models/goals_user.rb
Instance Attribute Summary collapse
-
#kit_session_id ⇒ Object
Returns the value of attribute kit_session_id.
-
#system_id ⇒ Object
Returns the value of attribute system_id.
Instance Method Summary collapse
Instance Attribute Details
#kit_session_id ⇒ Object
Returns the value of attribute kit_session_id.
8 9 10 |
# File 'app/models/goals_user.rb', line 8 def kit_session_id @kit_session_id end |
#system_id ⇒ Object
Returns the value of attribute system_id.
9 10 11 |
# File 'app/models/goals_user.rb', line 9 def system_id @system_id end |
Instance Method Details
#create_engagement ⇒ Object
11 12 13 |
# File 'app/models/goals_user.rb', line 11 def create_engagement KitEngagement.create(:kit_session_id=>self.kit_session_id, :system_id=>self.system_id, :engage_type=>"Goal: #{self.goal.name}", :value=>"") if self.kit_session_id end |