Class: MicrosoftGraph::Models::WorkbookTableColumn

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/workbook_table_column.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 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

Parameters:

  • parse_node

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

Returns:

  • a workbook_table_column

Raises:

  • (StandardError)


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

#filterObject

Gets the filter property value. Retrieve the filter applied to the column. Read-only.

Returns:

  • a workbook_filter



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.

Parameters:

  • value

    Value to set for the filter property.

Returns:

  • a void



49
50
51
# File 'lib/models/workbook_table_column.rb', line 49

def filter=(value)
    @filter = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#indexObject

Gets the index property value. Returns the index number of the column within the columns collection of the table. Zero-indexed. Read-only.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the index property.

Returns:

  • a void



76
77
78
# File 'lib/models/workbook_table_column.rb', line 76

def index=(value)
    @index = value
end

#nameObject

Gets the name property value. Returns the name of the table column.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#valuesObject

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.

Returns:

  • a json



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.

Parameters:

  • value

    Value to set for the values property.

Returns:

  • a void



119
120
121
# File 'lib/models/workbook_table_column.rb', line 119

def values=(value)
    @values = value
end