Class: MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::Round::RoundPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::Round::RoundPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/drives/item/items/item/workbook/functions/round/round_post_request_body.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.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new roundPostRequestBody and sets the default values.
-
#num_digits ⇒ Object
Gets the numDigits property value.
-
#num_digits=(value) ⇒ Object
Sets the numDigits property value.
-
#number ⇒ Object
Gets the number property value.
-
#number=(value) ⇒ Object
Sets the number property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new roundPostRequestBody and sets the default values.
50 51 52 |
# File 'lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb', line 50 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
58 59 60 61 |
# File 'lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb', line 58 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return RoundPostRequestBody.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.
35 36 37 |
# File 'lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb', line 35 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.
43 44 45 |
# File 'lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb', line 43 def additional_data=(value) @additional_data = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
66 67 68 69 70 71 |
# File 'lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb', line 66 def get_field_deserializers() return { "numDigits" => lambda {|n| @num_digits = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "number" => lambda {|n| @number = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end |
#num_digits ⇒ Object
Gets the numDigits property value. The numDigits property
76 77 78 |
# File 'lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb', line 76 def num_digits return @num_digits end |
#num_digits=(value) ⇒ Object
Sets the numDigits property value. The numDigits property
84 85 86 |
# File 'lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb', line 84 def num_digits=(value) @num_digits = value end |
#number ⇒ Object
Gets the number property value. The number property
91 92 93 |
# File 'lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb', line 91 def number return @number end |
#number=(value) ⇒ Object
Sets the number property value. The number property
99 100 101 |
# File 'lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb', line 99 def number=(value) @number = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
107 108 109 110 111 112 |
# File 'lib/drives/item/items/item/workbook/functions/round/round_post_request_body.rb', line 107 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("numDigits", @num_digits) writer.write_object_value("number", @number) writer.write_additional_data(@additional_data) end |