Module: Teamable::Models::Member

Extended by:
ActiveSupport::Concern
Defined in:
lib/teamable/models/member.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#invitee_emailObject

Temporary store an invitee’s email for validation.



19
20
21
# File 'lib/teamable/models/member.rb', line 19

def invitee_email
  @invitee_email
end

Instance Method Details

#role?(input) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/teamable/models/member.rb', line 25

def role?(input)
  role.include? input.to_s
end

#role_nameObject



21
22
23
# File 'lib/teamable/models/member.rb', line 21

def role_name
  role.capitalize
end