Class: MicrosoftGraph::Models::WorkbookTableColumn
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_table_column.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
-
#filter ⇒ Object
Gets the filter property value.
-
#filter=(value) ⇒ Object
Sets the filter property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#index ⇒ Object
Gets the index property value.
-
#index=(value) ⇒ Object
Sets the index property value.
-
#initialize ⇒ Object
constructor
Instantiates a new workbookTableColumn and sets the default values.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#values ⇒ Object
Gets the values property value.
-
#values=(value) ⇒ Object
Sets the values property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new workbookTableColumn and sets the default values.
25 26 27 |
# File 'lib/models/workbook_table_column.rb', line 25 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
33 34 35 36 |
# File 'lib/models/workbook_table_column.rb', line 33 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookTableColumn.new end |
Instance Method Details
#filter ⇒ Object
Gets the filter property value. Retrieve the filter applied to the column. Read-only.
41 42 43 |
# File 'lib/models/workbook_table_column.rb', line 41 def filter return @filter end |
#filter=(value) ⇒ Object
Sets the filter property value. Retrieve the filter applied to the column. Read-only.
49 50 51 |
# File 'lib/models/workbook_table_column.rb', line 49 def filter=(value) @filter = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
56 57 58 59 60 61 62 63 |
# File 'lib/models/workbook_table_column.rb', line 56 def get_field_deserializers() return super.merge({ "filter" => lambda {|n| @filter = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookFilter.create_from_discriminator_value(pn) }) }, "index" => lambda {|n| @index = n.get_number_value() }, "name" => lambda {|n| @name = n.get_string_value() }, "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, }) end |
#index ⇒ Object
Gets the index property value. Returns the index number of the column within the columns collection of the table. Zero-indexed. Read-only.
68 69 70 |
# File 'lib/models/workbook_table_column.rb', line 68 def index return @index end |
#index=(value) ⇒ Object
Sets the index property value. Returns the index number of the column within the columns collection of the table. Zero-indexed. Read-only.
76 77 78 |
# File 'lib/models/workbook_table_column.rb', line 76 def index=(value) @index = value end |
#name ⇒ Object
Gets the name property value. Returns the name of the table column.
83 84 85 |
# File 'lib/models/workbook_table_column.rb', line 83 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. Returns the name of the table column.
91 92 93 |
# File 'lib/models/workbook_table_column.rb', line 91 def name=(value) @name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
99 100 101 102 103 104 105 106 |
# File 'lib/models/workbook_table_column.rb', line 99 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("filter", @filter) writer.write_number_value("index", @index) writer.write_string_value("name", @name) writer.write_object_value("values", @values) end |
#values ⇒ Object
Gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string.
111 112 113 |
# File 'lib/models/workbook_table_column.rb', line 111 def values return @values end |
#values=(value) ⇒ Object
Sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string.
119 120 121 |
# File 'lib/models/workbook_table_column.rb', line 119 def values=(value) @values = value end |