Class: MicrosoftGraph::Models::LearningAssignment
- Inherits:
-
LearningCourseActivity
- Object
- Entity
- LearningCourseActivity
- MicrosoftGraph::Models::LearningAssignment
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/learning_assignment.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#assigned_date_time ⇒ Object
Gets the assignedDateTime property value.
-
#assigned_date_time=(value) ⇒ Object
Sets the assignedDateTime property value.
-
#assigner_user_id ⇒ Object
Gets the assignerUserId property value.
-
#assigner_user_id=(value) ⇒ Object
Sets the assignerUserId property value.
-
#assignment_type ⇒ Object
Gets the assignmentType property value.
-
#assignment_type=(value) ⇒ Object
Sets the assignmentType property value.
-
#due_date_time ⇒ Object
Gets the dueDateTime property value.
-
#due_date_time=(value) ⇒ Object
Sets the dueDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new learningAssignment and sets the default values.
-
#notes ⇒ Object
Gets the notes property value.
-
#notes=(value) ⇒ Object
Sets the notes property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from LearningCourseActivity
#completed_date_time, #completed_date_time=, #completion_percentage, #completion_percentage=, #externalcourse_activity_id, #externalcourse_activity_id=, #learner_user_id, #learner_user_id=, #learning_content_id, #learning_content_id=, #learning_provider_id, #learning_provider_id=, #status, #status=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new learningAssignment and sets the default values.
74 75 76 |
# File 'lib/models/learning_assignment.rb', line 74 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
82 83 84 85 |
# File 'lib/models/learning_assignment.rb', line 82 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return LearningAssignment.new end |
Instance Method Details
#assigned_date_time ⇒ Object
Gets the assignedDateTime property value. Assigned date for the course activity. Optional.
29 30 31 |
# File 'lib/models/learning_assignment.rb', line 29 def assigned_date_time return @assigned_date_time end |
#assigned_date_time=(value) ⇒ Object
Sets the assignedDateTime property value. Assigned date for the course activity. Optional.
37 38 39 |
# File 'lib/models/learning_assignment.rb', line 37 def assigned_date_time=(value) @assigned_date_time = value end |
#assigner_user_id ⇒ Object
Gets the assignerUserId property value. The user ID of the assigner. Optional.
44 45 46 |
# File 'lib/models/learning_assignment.rb', line 44 def assigner_user_id return @assigner_user_id end |
#assigner_user_id=(value) ⇒ Object
Sets the assignerUserId property value. The user ID of the assigner. Optional.
52 53 54 |
# File 'lib/models/learning_assignment.rb', line 52 def assigner_user_id=(value) @assigner_user_id = value end |
#assignment_type ⇒ Object
Gets the assignmentType property value. The assignmentType property
59 60 61 |
# File 'lib/models/learning_assignment.rb', line 59 def assignment_type return @assignment_type end |
#assignment_type=(value) ⇒ Object
Sets the assignmentType property value. The assignmentType property
67 68 69 |
# File 'lib/models/learning_assignment.rb', line 67 def assignment_type=(value) @assignment_type = value end |
#due_date_time ⇒ Object
Gets the dueDateTime property value. Due date for the course activity. Optional.
90 91 92 |
# File 'lib/models/learning_assignment.rb', line 90 def due_date_time return @due_date_time end |
#due_date_time=(value) ⇒ Object
Sets the dueDateTime property value. Due date for the course activity. Optional.
98 99 100 |
# File 'lib/models/learning_assignment.rb', line 98 def due_date_time=(value) @due_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
105 106 107 108 109 110 111 112 113 |
# File 'lib/models/learning_assignment.rb', line 105 def get_field_deserializers() return super.merge({ "assignedDateTime" => lambda {|n| @assigned_date_time = n.get_date_time_value() }, "assignerUserId" => lambda {|n| @assigner_user_id = n.get_string_value() }, "assignmentType" => lambda {|n| @assignment_type = n.get_enum_value(MicrosoftGraph::Models::AssignmentType) }, "dueDateTime" => lambda {|n| @due_date_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) }, "notes" => lambda {|n| @notes = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemBody.create_from_discriminator_value(pn) }) }, }) end |
#notes ⇒ Object
Gets the notes property value. Notes for the course activity. Optional.
118 119 120 |
# File 'lib/models/learning_assignment.rb', line 118 def notes return @notes end |
#notes=(value) ⇒ Object
Sets the notes property value. Notes for the course activity. Optional.
126 127 128 |
# File 'lib/models/learning_assignment.rb', line 126 def notes=(value) @notes = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
134 135 136 137 138 139 140 141 142 |
# File 'lib/models/learning_assignment.rb', line 134 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("assignedDateTime", @assigned_date_time) writer.write_string_value("assignerUserId", @assigner_user_id) writer.write_enum_value("assignmentType", @assignment_type) writer.write_object_value("dueDateTime", @due_date_time) writer.write_object_value("notes", @notes) end |