Class: MicrosoftGraph::Models::WorkbookRangeView
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workbook_range_view.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
-
#cell_addresses ⇒ Object
Gets the cellAddresses property value.
-
#cell_addresses=(value) ⇒ Object
Sets the cellAddresses property value.
-
#column_count ⇒ Object
Gets the columnCount property value.
-
#column_count=(value) ⇒ Object
Sets the columnCount property value.
-
#formulas ⇒ Object
Gets the formulas property value.
-
#formulas=(value) ⇒ Object
Sets the formulas property value.
-
#formulas_local ⇒ Object
Gets the formulasLocal property value.
-
#formulas_local=(value) ⇒ Object
Sets the formulasLocal property value.
-
#formulas_r1_c1 ⇒ Object
Gets the formulasR1C1 property value.
-
#formulas_r1_c1=(value) ⇒ Object
Sets the formulasR1C1 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 workbookRangeView and sets the default values.
-
#number_format ⇒ Object
Gets the numberFormat property value.
-
#number_format=(value) ⇒ Object
Sets the numberFormat property value.
-
#row_count ⇒ Object
Gets the rowCount property value.
-
#row_count=(value) ⇒ Object
Sets the rowCount property value.
-
#rows ⇒ Object
Gets the rows property value.
-
#rows=(value) ⇒ Object
Sets the rows property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#text ⇒ Object
Gets the text property value.
-
#text=(value) ⇒ Object
Sets the text property value.
-
#value_types ⇒ Object
Gets the valueTypes property value.
-
#value_types=(value) ⇒ Object
Sets the valueTypes property value.
-
#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 workbookRangeView and sets the default values.
79 80 81 |
# File 'lib/models/workbook_range_view.rb', line 79 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
87 88 89 90 |
# File 'lib/models/workbook_range_view.rb', line 87 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WorkbookRangeView.new end |
Instance Method Details
#cell_addresses ⇒ Object
Gets the cellAddresses property value. Represents the cell addresses
49 50 51 |
# File 'lib/models/workbook_range_view.rb', line 49 def cell_addresses return @cell_addresses end |
#cell_addresses=(value) ⇒ Object
Sets the cellAddresses property value. Represents the cell addresses
57 58 59 |
# File 'lib/models/workbook_range_view.rb', line 57 def cell_addresses=(value) @cell_addresses = value end |
#column_count ⇒ Object
Gets the columnCount property value. Returns the number of visible columns. Read-only.
64 65 66 |
# File 'lib/models/workbook_range_view.rb', line 64 def column_count return @column_count end |
#column_count=(value) ⇒ Object
Sets the columnCount property value. Returns the number of visible columns. Read-only.
72 73 74 |
# File 'lib/models/workbook_range_view.rb', line 72 def column_count=(value) @column_count = value end |
#formulas ⇒ Object
Gets the formulas property value. Represents the formula in A1-style notation.
95 96 97 |
# File 'lib/models/workbook_range_view.rb', line 95 def formulas return @formulas end |
#formulas=(value) ⇒ Object
Sets the formulas property value. Represents the formula in A1-style notation.
103 104 105 |
# File 'lib/models/workbook_range_view.rb', line 103 def formulas=(value) @formulas = value end |
#formulas_local ⇒ Object
Gets the formulasLocal property value. Represents the formula in A1-style notation, in the user’s language and number-formatting locale. For example, the English ‘=SUM(A1, 1.5)’ formula would become ‘=SUMME(A1; 1,5)’ in German.
110 111 112 |
# File 'lib/models/workbook_range_view.rb', line 110 def formulas_local return @formulas_local end |
#formulas_local=(value) ⇒ Object
Sets the formulasLocal property value. Represents the formula in A1-style notation, in the user’s language and number-formatting locale. For example, the English ‘=SUM(A1, 1.5)’ formula would become ‘=SUMME(A1; 1,5)’ in German.
118 119 120 |
# File 'lib/models/workbook_range_view.rb', line 118 def formulas_local=(value) @formulas_local = value end |
#formulas_r1_c1 ⇒ Object
Gets the formulasR1C1 property value. Represents the formula in R1C1-style notation.
125 126 127 |
# File 'lib/models/workbook_range_view.rb', line 125 def formulas_r1_c1 return @formulas_r1_c1 end |
#formulas_r1_c1=(value) ⇒ Object
Sets the formulasR1C1 property value. Represents the formula in R1C1-style notation.
133 134 135 |
# File 'lib/models/workbook_range_view.rb', line 133 def formulas_r1_c1=(value) @formulas_r1_c1 = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/models/workbook_range_view.rb', line 140 def get_field_deserializers() return super.merge({ "cellAddresses" => lambda {|n| @cell_addresses = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "columnCount" => lambda {|n| @column_count = n.get_number_value() }, "formulas" => lambda {|n| @formulas = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "formulasLocal" => lambda {|n| @formulas_local = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "formulasR1C1" => lambda {|n| @formulas_r1_c1 = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "index" => lambda {|n| @index = n.get_number_value() }, "numberFormat" => lambda {|n| @number_format = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "rowCount" => lambda {|n| @row_count = n.get_number_value() }, "rows" => lambda {|n| @rows = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkbookRangeView.create_from_discriminator_value(pn) }) }, "text" => lambda {|n| @text = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "valueTypes" => lambda {|n| @value_types = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "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. Index of the range.
160 161 162 |
# File 'lib/models/workbook_range_view.rb', line 160 def index return @index end |
#index=(value) ⇒ Object
Sets the index property value. Index of the range.
168 169 170 |
# File 'lib/models/workbook_range_view.rb', line 168 def index=(value) @index = value end |
#number_format ⇒ Object
Gets the numberFormat property value. Represents Excel’s number format code for the given cell. Read-only.
175 176 177 |
# File 'lib/models/workbook_range_view.rb', line 175 def number_format return @number_format end |
#number_format=(value) ⇒ Object
Sets the numberFormat property value. Represents Excel’s number format code for the given cell. Read-only.
183 184 185 |
# File 'lib/models/workbook_range_view.rb', line 183 def number_format=(value) @number_format = value end |
#row_count ⇒ Object
Gets the rowCount property value. Returns the number of visible rows. Read-only.
190 191 192 |
# File 'lib/models/workbook_range_view.rb', line 190 def row_count return @row_count end |
#row_count=(value) ⇒ Object
Sets the rowCount property value. Returns the number of visible rows. Read-only.
198 199 200 |
# File 'lib/models/workbook_range_view.rb', line 198 def row_count=(value) @row_count = value end |
#rows ⇒ Object
Gets the rows property value. Represents a collection of range views associated with the range. Read-only. Read-only.
205 206 207 |
# File 'lib/models/workbook_range_view.rb', line 205 def rows return @rows end |
#rows=(value) ⇒ Object
Sets the rows property value. Represents a collection of range views associated with the range. Read-only. Read-only.
213 214 215 |
# File 'lib/models/workbook_range_view.rb', line 213 def rows=(value) @rows = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/models/workbook_range_view.rb', line 221 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("cellAddresses", @cell_addresses) writer.write_number_value("columnCount", @column_count) writer.write_object_value("formulas", @formulas) writer.write_object_value("formulasLocal", @formulas_local) writer.write_object_value("formulasR1C1", @formulas_r1_c1) writer.write_number_value("index", @index) writer.write_object_value("numberFormat", @number_format) writer.write_number_value("rowCount", @row_count) writer.write_collection_of_object_values("rows", @rows) writer.write_object_value("text", @text) writer.write_object_value("valueTypes", @value_types) writer.write_object_value("values", @values) end |
#text ⇒ Object
Gets the text property value. Text values of the specified range. The Text value will not depend on the cell width. The # sign substitution that happens in Excel UI will not affect the text value returned by the API. Read-only.
241 242 243 |
# File 'lib/models/workbook_range_view.rb', line 241 def text return @text end |
#text=(value) ⇒ Object
Sets the text property value. Text values of the specified range. The Text value will not depend on the cell width. The # sign substitution that happens in Excel UI will not affect the text value returned by the API. Read-only.
249 250 251 |
# File 'lib/models/workbook_range_view.rb', line 249 def text=(value) @text = value end |
#value_types ⇒ Object
Gets the valueTypes property value. Represents the type of data of each cell. Read-only. The possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error.
256 257 258 |
# File 'lib/models/workbook_range_view.rb', line 256 def value_types return @value_types end |
#value_types=(value) ⇒ Object
Sets the valueTypes property value. Represents the type of data of each cell. Read-only. The possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error.
264 265 266 |
# File 'lib/models/workbook_range_view.rb', line 264 def value_types=(value) @value_types = value end |
#values ⇒ Object
Gets the values property value. Represents the raw values of the specified range view. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string.
271 272 273 |
# File 'lib/models/workbook_range_view.rb', line 271 def values return @values end |
#values=(value) ⇒ Object
Sets the values property value. Represents the raw values of the specified range view. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string.
279 280 281 |
# File 'lib/models/workbook_range_view.rb', line 279 def values=(value) @values = value end |