Class: MicrosoftGraph::Models::EducationTerm
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::EducationTerm
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/education_term.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#end_date ⇒ Object
Gets the endDate property value.
-
#end_date=(value) ⇒ Object
Sets the endDate property value.
-
#external_id ⇒ Object
Gets the externalId property value.
-
#external_id=(value) ⇒ Object
Sets the externalId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new educationTerm and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#start_date ⇒ Object
Gets the startDate property value.
-
#start_date=(value) ⇒ Object
Sets the startDate property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new educationTerm and sets the default values.
47 48 49 |
# File 'lib/models/education_term.rb', line 47 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
55 56 57 58 |
# File 'lib/models/education_term.rb', line 55 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return EducationTerm.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
32 33 34 |
# File 'lib/models/education_term.rb', line 32 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
40 41 42 |
# File 'lib/models/education_term.rb', line 40 def additional_data=(value) @additional_data = value end |
#display_name ⇒ Object
Gets the displayName property value. Display name of the term.
63 64 65 |
# File 'lib/models/education_term.rb', line 63 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Display name of the term.
71 72 73 |
# File 'lib/models/education_term.rb', line 71 def display_name=(value) @display_name = value end |
#end_date ⇒ Object
Gets the endDate property value. End of the term.
78 79 80 |
# File 'lib/models/education_term.rb', line 78 def end_date return @end_date end |
#end_date=(value) ⇒ Object
Sets the endDate property value. End of the term.
86 87 88 |
# File 'lib/models/education_term.rb', line 86 def end_date=(value) @end_date = value end |
#external_id ⇒ Object
Gets the externalId property value. ID of term in the syncing system.
93 94 95 |
# File 'lib/models/education_term.rb', line 93 def external_id return @external_id end |
#external_id=(value) ⇒ Object
Sets the externalId property value. ID of term in the syncing system.
101 102 103 |
# File 'lib/models/education_term.rb', line 101 def external_id=(value) @external_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
108 109 110 111 112 113 114 115 116 |
# File 'lib/models/education_term.rb', line 108 def get_field_deserializers() return { "displayName" => lambda {|n| @display_name = n.get_string_value() }, "endDate" => lambda {|n| @end_date = n.get_date_value() }, "externalId" => lambda {|n| @external_id = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "startDate" => lambda {|n| @start_date = n.get_date_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
121 122 123 |
# File 'lib/models/education_term.rb', line 121 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
129 130 131 |
# File 'lib/models/education_term.rb', line 129 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
137 138 139 140 141 142 143 144 145 |
# File 'lib/models/education_term.rb', line 137 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("displayName", @display_name) writer.write_date_value("endDate", @end_date) writer.write_string_value("externalId", @external_id) writer.write_string_value("@odata.type", @odata_type) writer.write_date_value("startDate", @start_date) writer.write_additional_data(@additional_data) end |
#start_date ⇒ Object
Gets the startDate property value. Start of the term.
150 151 152 |
# File 'lib/models/education_term.rb', line 150 def start_date return @start_date end |
#start_date=(value) ⇒ Object
Sets the startDate property value. Start of the term.
158 159 160 |
# File 'lib/models/education_term.rb', line 158 def start_date=(value) @start_date = value end |