Class: StackOne::Models::Shared::LmsCreateCompletionRequestDto

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/lmscreatecompletionrequestdto.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:, completed_at: nil, content_external_reference: nil, content_id: nil, learning_object_id: nil, passthrough: nil, result: nil, score: nil, time_spent: nil) ⇒ LmsCreateCompletionRequestDto

Returns a new instance of LmsCreateCompletionRequestDto.



39
40
41
42
43
44
45
46
47
48
49
# File 'lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb', line 39

def initialize(learning_object_external_reference:, completed_at: nil, content_external_reference: nil, content_id: nil, learning_object_id: nil, passthrough: nil, result: nil, score: nil, time_spent: nil)
  @learning_object_external_reference = learning_object_external_reference
  @completed_at = completed_at
  @content_external_reference = content_external_reference
  @content_id = content_id
  @learning_object_id = learning_object_id
  @passthrough = passthrough
  @result = result
  @score = score
  @time_spent = time_spent
end

Instance Method Details

#==(other) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb', line 52

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 @completed_at == other.completed_at
  return false unless @content_external_reference == other.content_external_reference
  return false unless @content_id == other.content_id
  return false unless @learning_object_id == other.learning_object_id
  return false unless @passthrough == other.passthrough
  return false unless @result == other.result
  return false unless @score == other.score
  return false unless @time_spent == other.time_spent
  true
end