Class: MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::TrimMean::TrimMeanPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::TrimMean::TrimMeanPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_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.
-
#array ⇒ Object
Gets the array property value.
-
#array=(value) ⇒ Object
Sets the array property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new trimMeanPostRequestBody and sets the default values.
-
#percent ⇒ Object
Gets the percent property value.
-
#percent=(value) ⇒ Object
Sets the percent property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new trimMeanPostRequestBody and sets the default values.
65 66 67 |
# File 'lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb', line 65 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
73 74 75 76 |
# File 'lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb', line 73 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return TrimMeanPostRequestBody.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/trim_mean/trim_mean_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/trim_mean/trim_mean_post_request_body.rb', line 43 def additional_data=(value) @additional_data = value end |
#array ⇒ Object
Gets the array property value. The array property
50 51 52 |
# File 'lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb', line 50 def array return @array end |
#array=(value) ⇒ Object
Sets the array property value. The array property
58 59 60 |
# File 'lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb', line 58 def array=(value) @array = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
81 82 83 84 85 86 |
# File 'lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb', line 81 def get_field_deserializers() return { "array" => lambda {|n| @array = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "percent" => lambda {|n| @percent = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end |
#percent ⇒ Object
Gets the percent property value. The percent property
91 92 93 |
# File 'lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb', line 91 def percent return @percent end |
#percent=(value) ⇒ Object
Sets the percent property value. The percent property
99 100 101 |
# File 'lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb', line 99 def percent=(value) @percent = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
107 108 109 110 111 112 |
# File 'lib/drives/item/items/item/workbook/functions/trim_mean/trim_mean_post_request_body.rb', line 107 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("array", @array) writer.write_object_value("percent", @percent) writer.write_additional_data(@additional_data) end |