Class: Effective::MentorshipGroupUser

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

Constant Summary collapse

MENTORSHIP_ROLES =
['mentor', 'mentee']

Instance Method Summary collapse

Instance Method Details

#mentee?Boolean

Returns:

  • (Boolean)


59
60
61
# File 'app/models/effective/mentorship_group_user.rb', line 59

def mentee?
  mentorship_role.to_s == 'mentee'
end

#mentor?Boolean

Returns:

  • (Boolean)


55
56
57
# File 'app/models/effective/mentorship_group_user.rb', line 55

def mentor?
  mentorship_role.to_s == 'mentor'
end

#to_sObject



51
52
53
# File 'app/models/effective/mentorship_group_user.rb', line 51

def to_s
  user.to_s.presence || model_name.human
end