Class: StackOne::Models::Shared::LmsCreateAssignmentRequestDto

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/lmscreateassignmentrequestdto.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(learning_object_external_reference:, assigned_at: nil, due_date: nil, external_reference: nil, learning_object_id: nil, passthrough: nil, progress: nil, status: nil) ⇒ LmsCreateAssignmentRequestDto

Returns a new instance of LmsCreateAssignmentRequestDto.



35
36
37
38
39
40
41
42
43
44
# File 'lib/stack_one/models/shared/lmscreateassignmentrequestdto.rb', line 35

def initialize(learning_object_external_reference:, assigned_at: nil, due_date: nil, external_reference: nil, learning_object_id: nil, passthrough: nil, progress: nil, status: nil)
  @learning_object_external_reference = learning_object_external_reference
  @assigned_at = assigned_at
  @due_date = due_date
  @external_reference = external_reference
  @learning_object_id = learning_object_id
  @passthrough = passthrough
  @progress = progress
  @status = status
end

Instance Method Details

#==(other) ⇒ Object



47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/stack_one/models/shared/lmscreateassignmentrequestdto.rb', line 47

def ==(other)
  return false unless other.is_a? self.class
  return false unless @learning_object_external_reference == other.learning_object_external_reference
  return false unless @assigned_at == other.assigned_at
  return false unless @due_date == other.due_date
  return false unless @external_reference == other.external_reference
  return false unless @learning_object_id == other.learning_object_id
  return false unless @passthrough == other.passthrough
  return false unless @progress == other.progress
  return false unless @status == other.status
  true
end