Class: PipelineService::Nouns::UnitGrades

Inherits:
Object
  • Object
show all
Defined in:
app/services/pipeline_service/nouns/unit_grades.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#changesObject (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

#courseObject (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

#idObject (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

#studentObject (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

#submissionObject (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