Class: Trackington::ProjectRole
- Inherits:
-
Object
- Object
- Trackington::ProjectRole
- Defined in:
- lib/trackington/app/projects.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#user_email ⇒ Object
readonly
Returns the value of attribute user_email.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(project_role) ⇒ ProjectRole
constructor
A new instance of ProjectRole.
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
#type ⇒ Object (readonly)
Returns the value of attribute type.
167 168 169 |
# File 'lib/trackington/app/projects.rb', line 167 def type @type end |
#user_email ⇒ Object (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_id ⇒ Object (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 |