Class: GoalsUser

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/goals_user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kit_session_idObject

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_idObject

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_engagementObject



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