Class: MicrosoftGraph::Models::WorkbookRangeView

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/workbook_range_view.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a workbook_range_view

Raises:

  • (StandardError)


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_addressesObject

Gets the cellAddresses property value. Represents the cell addresses

Returns:

  • a json



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

Parameters:

  • value

    Value to set for the cellAddresses property.

Returns:

  • a void



57
58
59
# File 'lib/models/workbook_range_view.rb', line 57

def cell_addresses=(value)
    @cell_addresses = value
end

#column_countObject

Gets the columnCount property value. Returns the number of visible columns. Read-only.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the columnCount property.

Returns:

  • a void



72
73
74
# File 'lib/models/workbook_range_view.rb', line 72

def column_count=(value)
    @column_count = value
end

#formulasObject

Gets the formulas property value. Represents the formula in A1-style notation.

Returns:

  • a json



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.

Parameters:

  • value

    Value to set for the formulas property.

Returns:

  • a void



103
104
105
# File 'lib/models/workbook_range_view.rb', line 103

def formulas=(value)
    @formulas = value
end

#formulas_localObject

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.

Returns:

  • a json



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.

Parameters:

  • value

    Value to set for the formulasLocal property.

Returns:

  • a void



118
119
120
# File 'lib/models/workbook_range_view.rb', line 118

def formulas_local=(value)
    @formulas_local = value
end

#formulas_r1_c1Object

Gets the formulasR1C1 property value. Represents the formula in R1C1-style notation.

Returns:

  • a json



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.

Parameters:

  • value

    Value to set for the formulasR1C1 property.

Returns:

  • a void



133
134
135
# File 'lib/models/workbook_range_view.rb', line 133

def formulas_r1_c1=(value)
    @formulas_r1_c1 = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#indexObject

Gets the index property value. Index of the range.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the index property.

Returns:

  • a void



168
169
170
# File 'lib/models/workbook_range_view.rb', line 168

def index=(value)
    @index = value
end

#number_formatObject

Gets the numberFormat property value. Represents Excel’s number format code for the given cell. Read-only.

Returns:

  • a json



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.

Parameters:

  • value

    Value to set for the numberFormat property.

Returns:

  • a void



183
184
185
# File 'lib/models/workbook_range_view.rb', line 183

def number_format=(value)
    @number_format = value
end

#row_countObject

Gets the rowCount property value. Returns the number of visible rows. Read-only.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the rowCount property.

Returns:

  • a void



198
199
200
# File 'lib/models/workbook_range_view.rb', line 198

def row_count=(value)
    @row_count = value
end

#rowsObject

Gets the rows property value. Represents a collection of range views associated with the range. Read-only. Read-only.

Returns:

  • a workbook_range_view



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.

Parameters:

  • value

    Value to set for the rows property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#textObject

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.

Returns:

  • a json



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.

Parameters:

  • value

    Value to set for the text property.

Returns:

  • a void



249
250
251
# File 'lib/models/workbook_range_view.rb', line 249

def text=(value)
    @text = value
end

#value_typesObject

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.

Returns:

  • a json



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.

Parameters:

  • value

    Value to set for the valueTypes property.

Returns:

  • a void



264
265
266
# File 'lib/models/workbook_range_view.rb', line 264

def value_types=(value)
    @value_types = value
end

#valuesObject

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.

Returns:

  • a json



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.

Parameters:

  • value

    Value to set for the values property.

Returns:

  • a void



279
280
281
# File 'lib/models/workbook_range_view.rb', line 279

def values=(value)
    @values = value
end