Class: Trackington::ProjectRole

Inherits:
Object
  • Object
show all
Defined in:
lib/trackington/app/projects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_role) ⇒ ProjectRole

Returns a new instance of ProjectRole.



169
170
171
172
173
# File 'lib/trackington/app/projects.rb', line 169

def initialize(project_role)
  @user_id = project_role.user_id
  @user_email = project_role.user.email
  @type = project_role.role_type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



167
168
169
# File 'lib/trackington/app/projects.rb', line 167

def type
  @type
end

#user_emailObject (readonly)

Returns the value of attribute user_email.



167
168
169
# File 'lib/trackington/app/projects.rb', line 167

def user_email
  @user_email
end

#user_idObject (readonly)

Returns the value of attribute user_id.



167
168
169
# File 'lib/trackington/app/projects.rb', line 167

def user_id
  @user_id
end