Class: Applicants::ApplicantPanelParameterSet

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

Constant Summary collapse

REFERRAL_PARAMETER_NAME =

Manager’s of panel groups want to be able to launch MyPoints Campaigns.

rid is a url parameter for referral ids, for example: mypoints

visit_id is a url parameter we’re using for MyPoints tracking: bit.ly/18iv0k5 When a user signs up with rid set to mypoints and visit_id set, we show an image tag with a customized url, using the visit_id, on the Next Steps page.

"rid"
MY_POINTS_PARAMETER_NAME =
"visit_id"

Instance Method Summary collapse

Instance Method Details

#parsed_parameter(key) ⇒ Object



27
28
29
# File 'app/models/applicants/applicant_panel_parameter_set.rb', line 27

def parsed_parameter(key)
  parsed_parameters[key]
end

#parsed_parametersObject



31
32
33
# File 'app/models/applicants/applicant_panel_parameter_set.rb', line 31

def parsed_parameters
  @parsed_parameters ||= JSON.parse(parameters)
end

#ridObject



19
20
21
# File 'app/models/applicants/applicant_panel_parameter_set.rb', line 19

def rid
  parsed_parameter(REFERRAL_PARAMETER_NAME)
end

#visit_idObject



23
24
25
# File 'app/models/applicants/applicant_panel_parameter_set.rb', line 23

def visit_id
  parsed_parameter(MY_POINTS_PARAMETER_NAME)
end