Class: MicrosoftGraph::Models::LearningCourseActivity
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/learning_course_activity.rb
Direct Known Subclasses
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
-
#completed_date_time ⇒ Object
Gets the completedDateTime property value.
-
#completed_date_time=(value) ⇒ Object
Sets the completedDateTime property value.
-
#completion_percentage ⇒ Object
Gets the completionPercentage property value.
-
#completion_percentage=(value) ⇒ Object
Sets the completionPercentage property value.
-
#externalcourse_activity_id ⇒ Object
Gets the externalcourseActivityId property value.
-
#externalcourse_activity_id=(value) ⇒ Object
Sets the externalcourseActivityId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new learningCourseActivity and sets the default values.
-
#learner_user_id ⇒ Object
Gets the learnerUserId property value.
-
#learner_user_id=(value) ⇒ Object
Sets the learnerUserId property value.
-
#learning_content_id ⇒ Object
Gets the learningContentId property value.
-
#learning_content_id=(value) ⇒ Object
Sets the learningContentId property value.
-
#learning_provider_id ⇒ Object
Gets the learningProviderId property value.
-
#learning_provider_id=(value) ⇒ Object
Sets the learningProviderId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new learningCourseActivity and sets the default values.
65 66 67 |
# File 'lib/models/learning_course_activity.rb', line 65 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
73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/models/learning_course_activity.rb', line 73 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.learningAssignment" return LearningAssignment.new when "#microsoft.graph.learningSelfInitiatedCourse" return LearningSelfInitiatedCourse.new end end return LearningCourseActivity.new end |
Instance Method Details
#completed_date_time ⇒ Object
Gets the completedDateTime property value. Date and time when the assignment was completed. Optional.
35 36 37 |
# File 'lib/models/learning_course_activity.rb', line 35 def completed_date_time return @completed_date_time end |
#completed_date_time=(value) ⇒ Object
Sets the completedDateTime property value. Date and time when the assignment was completed. Optional.
43 44 45 |
# File 'lib/models/learning_course_activity.rb', line 43 def completed_date_time=(value) @completed_date_time = value end |
#completion_percentage ⇒ Object
Gets the completionPercentage property value. The percentage completion value of the course activity. Optional.
50 51 52 |
# File 'lib/models/learning_course_activity.rb', line 50 def completion_percentage return @completion_percentage end |
#completion_percentage=(value) ⇒ Object
Sets the completionPercentage property value. The percentage completion value of the course activity. Optional.
58 59 60 |
# File 'lib/models/learning_course_activity.rb', line 58 def completion_percentage=(value) @completion_percentage = value end |
#externalcourse_activity_id ⇒ Object
Gets the externalcourseActivityId property value. A course activity ID generated by the provider. Optional.
91 92 93 |
# File 'lib/models/learning_course_activity.rb', line 91 def externalcourse_activity_id return @externalcourse_activity_id end |
#externalcourse_activity_id=(value) ⇒ Object
Sets the externalcourseActivityId property value. A course activity ID generated by the provider. Optional.
99 100 101 |
# File 'lib/models/learning_course_activity.rb', line 99 def externalcourse_activity_id=(value) @externalcourse_activity_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/models/learning_course_activity.rb', line 106 def get_field_deserializers() return super.merge({ "completedDateTime" => lambda {|n| @completed_date_time = n.get_date_time_value() }, "completionPercentage" => lambda {|n| @completion_percentage = n.get_number_value() }, "externalcourseActivityId" => lambda {|n| @externalcourse_activity_id = n.get_string_value() }, "learnerUserId" => lambda {|n| @learner_user_id = n.get_string_value() }, "learningContentId" => lambda {|n| @learning_content_id = n.get_string_value() }, "learningProviderId" => lambda {|n| @learning_provider_id = n.get_string_value() }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::CourseStatus) }, }) end |
#learner_user_id ⇒ Object
Gets the learnerUserId property value. The user ID of the learner to whom the activity is assigned. Required.
121 122 123 |
# File 'lib/models/learning_course_activity.rb', line 121 def learner_user_id return @learner_user_id end |
#learner_user_id=(value) ⇒ Object
Sets the learnerUserId property value. The user ID of the learner to whom the activity is assigned. Required.
129 130 131 |
# File 'lib/models/learning_course_activity.rb', line 129 def learner_user_id=(value) @learner_user_id = value end |
#learning_content_id ⇒ Object
Gets the learningContentId property value. The ID of the learning content created in Viva Learning. Required.
136 137 138 |
# File 'lib/models/learning_course_activity.rb', line 136 def learning_content_id return @learning_content_id end |
#learning_content_id=(value) ⇒ Object
Sets the learningContentId property value. The ID of the learning content created in Viva Learning. Required.
144 145 146 |
# File 'lib/models/learning_course_activity.rb', line 144 def learning_content_id=(value) @learning_content_id = value end |
#learning_provider_id ⇒ Object
Gets the learningProviderId property value. The registration ID of the provider. Required.
151 152 153 |
# File 'lib/models/learning_course_activity.rb', line 151 def learning_provider_id return @learning_provider_id end |
#learning_provider_id=(value) ⇒ Object
Sets the learningProviderId property value. The registration ID of the provider. Required.
159 160 161 |
# File 'lib/models/learning_course_activity.rb', line 159 def learning_provider_id=(value) @learning_provider_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/models/learning_course_activity.rb', line 167 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("completedDateTime", @completed_date_time) writer.write_number_value("completionPercentage", @completion_percentage) writer.write_string_value("externalcourseActivityId", @externalcourse_activity_id) writer.write_string_value("learnerUserId", @learner_user_id) writer.write_string_value("learningContentId", @learning_content_id) writer.write_string_value("learningProviderId", @learning_provider_id) writer.write_enum_value("status", @status) end |
#status ⇒ Object
Gets the status property value. The status of the course activity. Possible values are: notStarted, inProgress, completed. Required.
182 183 184 |
# File 'lib/models/learning_course_activity.rb', line 182 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The status of the course activity. Possible values are: notStarted, inProgress, completed. Required.
190 191 192 |
# File 'lib/models/learning_course_activity.rb', line 190 def status=(value) @status = value end |