Class: MicrosoftGraph::Models::WorkbookSortField
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::WorkbookSortField
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_sort_field.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.
-
#ascending ⇒ Object
Gets the ascending property value.
-
#ascending=(value) ⇒ Object
Sets the ascending property value.
-
#color ⇒ Object
Gets the color property value.
-
#color=(value) ⇒ Object
Sets the color property value.
-
#data_option ⇒ Object
Gets the dataOption property value.
-
#data_option=(value) ⇒ Object
Sets the dataOption property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#icon ⇒ Object
Gets the icon property value.
-
#icon=(value) ⇒ Object
Sets the icon property value.
-
#initialize ⇒ Object
constructor
Instantiates a new workbookSortField and sets the default values.
-
#key ⇒ Object
Gets the key property value.
-
#key=(value) ⇒ Object
Sets the key property value.
-
#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.
-
#sort_on ⇒ Object
Gets the sortOn property value.
-
#sort_on=(value) ⇒ Object
Sets the sortOn property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new workbookSortField and sets the default values.
82 83 84 |
# File 'lib/models/workbook_sort_field.rb', line 82 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
90 91 92 93 |
# File 'lib/models/workbook_sort_field.rb', line 90 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookSortField.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.
37 38 39 |
# File 'lib/models/workbook_sort_field.rb', line 37 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.
45 46 47 |
# File 'lib/models/workbook_sort_field.rb', line 45 def additional_data=(value) @additional_data = value end |
#ascending ⇒ Object
Gets the ascending property value. Represents whether the sorting is done in an ascending fashion.
52 53 54 |
# File 'lib/models/workbook_sort_field.rb', line 52 def ascending return @ascending end |
#ascending=(value) ⇒ Object
Sets the ascending property value. Represents whether the sorting is done in an ascending fashion.
60 61 62 |
# File 'lib/models/workbook_sort_field.rb', line 60 def ascending=(value) @ascending = value end |
#color ⇒ Object
Gets the color property value. Represents the color that is the target of the condition if the sorting is on font or cell color.
67 68 69 |
# File 'lib/models/workbook_sort_field.rb', line 67 def color return @color end |
#color=(value) ⇒ Object
Sets the color property value. Represents the color that is the target of the condition if the sorting is on font or cell color.
75 76 77 |
# File 'lib/models/workbook_sort_field.rb', line 75 def color=(value) @color = value end |
#data_option ⇒ Object
Gets the dataOption property value. Represents additional sorting options for this field. The possible values are: Normal, TextAsNumber.
98 99 100 |
# File 'lib/models/workbook_sort_field.rb', line 98 def data_option return @data_option end |
#data_option=(value) ⇒ Object
Sets the dataOption property value. Represents additional sorting options for this field. The possible values are: Normal, TextAsNumber.
106 107 108 |
# File 'lib/models/workbook_sort_field.rb', line 106 def data_option=(value) @data_option = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/models/workbook_sort_field.rb', line 113 def get_field_deserializers() return { "ascending" => lambda {|n| @ascending = n.get_boolean_value() }, "color" => lambda {|n| @color = n.get_string_value() }, "dataOption" => lambda {|n| @data_option = n.get_string_value() }, "icon" => lambda {|n| @icon = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookIcon.create_from_discriminator_value(pn) }) }, "key" => lambda {|n| @key = n.get_number_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "sortOn" => lambda {|n| @sort_on = n.get_string_value() }, } end |
#icon ⇒ Object
Gets the icon property value. Represents the icon that is the target of the condition if the sorting is on the cell’s icon.
128 129 130 |
# File 'lib/models/workbook_sort_field.rb', line 128 def icon return @icon end |
#icon=(value) ⇒ Object
Sets the icon property value. Represents the icon that is the target of the condition if the sorting is on the cell’s icon.
136 137 138 |
# File 'lib/models/workbook_sort_field.rb', line 136 def icon=(value) @icon = value end |
#key ⇒ Object
Gets the key property value. Represents the column (or row, depending on the sort orientation) that the condition is on. Represented as an offset from the first column (or row).
143 144 145 |
# File 'lib/models/workbook_sort_field.rb', line 143 def key return @key end |
#key=(value) ⇒ Object
Sets the key property value. Represents the column (or row, depending on the sort orientation) that the condition is on. Represented as an offset from the first column (or row).
151 152 153 |
# File 'lib/models/workbook_sort_field.rb', line 151 def key=(value) @key = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
158 159 160 |
# File 'lib/models/workbook_sort_field.rb', line 158 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
166 167 168 |
# File 'lib/models/workbook_sort_field.rb', line 166 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/models/workbook_sort_field.rb', line 174 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_boolean_value("ascending", @ascending) writer.write_string_value("color", @color) writer.write_string_value("dataOption", @data_option) writer.write_object_value("icon", @icon) writer.write_number_value("key", @key) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("sortOn", @sort_on) writer.write_additional_data(@additional_data) end |
#sort_on ⇒ Object
Gets the sortOn property value. Represents the type of sorting of this condition. The possible values are: Value, CellColor, FontColor, Icon.
189 190 191 |
# File 'lib/models/workbook_sort_field.rb', line 189 def sort_on return @sort_on end |
#sort_on=(value) ⇒ Object
Sets the sortOn property value. Represents the type of sorting of this condition. The possible values are: Value, CellColor, FontColor, Icon.
197 198 199 |
# File 'lib/models/workbook_sort_field.rb', line 197 def sort_on=(value) @sort_on = value end |