Class: PipelineService::Nouns::UnitGrades
- Inherits:
-
Object
- Object
- PipelineService::Nouns::UnitGrades
- Defined in:
- app/services/pipeline_service/nouns/unit_grades.rb
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#course ⇒ Object
readonly
Returns the value of attribute course.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#student ⇒ Object
readonly
Returns the value of attribute student.
-
#submission ⇒ Object
readonly
Returns the value of attribute submission.
Instance Method Summary collapse
-
#initialize(submission) ⇒ UnitGrades
constructor
A new instance of UnitGrades.
Constructor Details
#initialize(submission) ⇒ UnitGrades
Returns a new instance of UnitGrades.
5 6 7 8 9 10 11 |
# File 'app/services/pipeline_service/nouns/unit_grades.rb', line 5 def initialize(submission) @course = submission.assignment.course @student = submission.user @id = submission.id @changes = submission.changes @submission = submission end |
Instance Attribute Details
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
4 5 6 |
# File 'app/services/pipeline_service/nouns/unit_grades.rb', line 4 def changes @changes end |
#course ⇒ Object (readonly)
Returns the value of attribute course.
4 5 6 |
# File 'app/services/pipeline_service/nouns/unit_grades.rb', line 4 def course @course end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'app/services/pipeline_service/nouns/unit_grades.rb', line 4 def id @id end |
#student ⇒ Object (readonly)
Returns the value of attribute student.
4 5 6 |
# File 'app/services/pipeline_service/nouns/unit_grades.rb', line 4 def student @student end |
#submission ⇒ Object (readonly)
Returns the value of attribute submission.
4 5 6 |
# File 'app/services/pipeline_service/nouns/unit_grades.rb', line 4 def submission @submission end |