Class: Effective::MentorshipGroupUser

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

Instance Method Summary collapse

Instance Method Details

#mentee?Boolean

Returns:

  • (Boolean)


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

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

#mentor?Boolean

Returns:

  • (Boolean)


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

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

#to_sObject



46
47
48
# File 'app/models/effective/mentorship_group_user.rb', line 46

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