Class: MicrosoftGraph::Models::EducationFeedbackResourceOutcome
- Inherits:
-
EducationOutcome
- Object
- Entity
- EducationOutcome
- MicrosoftGraph::Models::EducationFeedbackResourceOutcome
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/education_feedback_resource_outcome.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
-
#feedback_resource ⇒ Object
Gets the feedbackResource property value.
-
#feedback_resource=(value) ⇒ Object
Sets the feedbackResource property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new EducationFeedbackResourceOutcome and sets the default values.
-
#resource_status ⇒ Object
Gets the resourceStatus property value.
-
#resource_status=(value) ⇒ Object
Sets the resourceStatus property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from EducationOutcome
#last_modified_by, #last_modified_by=, #last_modified_date_time, #last_modified_date_time=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new EducationFeedbackResourceOutcome and sets the default values.
19 20 21 22 |
# File 'lib/models/education_feedback_resource_outcome.rb', line 19 def initialize() super @odata_type = "#microsoft.graph.educationFeedbackResourceOutcome" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
28 29 30 31 |
# File 'lib/models/education_feedback_resource_outcome.rb', line 28 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return EducationFeedbackResourceOutcome.new end |
Instance Method Details
#feedback_resource ⇒ Object
Gets the feedbackResource property value. The actual feedback resource.
36 37 38 |
# File 'lib/models/education_feedback_resource_outcome.rb', line 36 def feedback_resource return @feedback_resource end |
#feedback_resource=(value) ⇒ Object
Sets the feedbackResource property value. The actual feedback resource.
44 45 46 |
# File 'lib/models/education_feedback_resource_outcome.rb', line 44 def feedback_resource=(value) @feedback_resource = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
51 52 53 54 55 56 |
# File 'lib/models/education_feedback_resource_outcome.rb', line 51 def get_field_deserializers() return super.merge({ "feedbackResource" => lambda {|n| @feedback_resource = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EducationResource.create_from_discriminator_value(pn) }) }, "resourceStatus" => lambda {|n| @resource_status = n.get_enum_value(MicrosoftGraph::Models::EducationFeedbackResourceOutcomeStatus) }, }) end |
#resource_status ⇒ Object
Gets the resourceStatus property value. The status of the feedback resource. The possible values are: notPublished, pendingPublish, published, failedPublish, unknownFutureValue.
61 62 63 |
# File 'lib/models/education_feedback_resource_outcome.rb', line 61 def resource_status return @resource_status end |
#resource_status=(value) ⇒ Object
Sets the resourceStatus property value. The status of the feedback resource. The possible values are: notPublished, pendingPublish, published, failedPublish, unknownFutureValue.
69 70 71 |
# File 'lib/models/education_feedback_resource_outcome.rb', line 69 def resource_status=(value) @resource_status = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
77 78 79 80 81 82 |
# File 'lib/models/education_feedback_resource_outcome.rb', line 77 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("feedbackResource", @feedback_resource) writer.write_enum_value("resourceStatus", @resource_status) end |