Class: Google::Apis::SheetsV4::TableColumnProperties

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb

Overview

The table column.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableColumnProperties

Returns a new instance of TableColumnProperties.



9974
9975
9976
# File 'lib/google/apis/sheets_v4/classes.rb', line 9974

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#column_indexFixnum

The 0-based column index. This index is relative to its position in the table and is not necessarily the same as the column index in the sheet. Corresponds to the JSON property columnIndex

Returns:

  • (Fixnum)


9957
9958
9959
# File 'lib/google/apis/sheets_v4/classes.rb', line 9957

def column_index
  @column_index
end

#column_nameString

The column name. Corresponds to the JSON property columnName

Returns:

  • (String)


9962
9963
9964
# File 'lib/google/apis/sheets_v4/classes.rb', line 9962

def column_name
  @column_name
end

#column_typeString

The column type. Corresponds to the JSON property columnType

Returns:

  • (String)


9967
9968
9969
# File 'lib/google/apis/sheets_v4/classes.rb', line 9967

def column_type
  @column_type
end

#data_validation_ruleGoogle::Apis::SheetsV4::TableColumnDataValidationRule

A data validation rule for a column in a table. Corresponds to the JSON property dataValidationRule



9972
9973
9974
# File 'lib/google/apis/sheets_v4/classes.rb', line 9972

def data_validation_rule
  @data_validation_rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9979
9980
9981
9982
9983
9984
# File 'lib/google/apis/sheets_v4/classes.rb', line 9979

def update!(**args)
  @column_index = args[:column_index] if args.key?(:column_index)
  @column_name = args[:column_name] if args.key?(:column_name)
  @column_type = args[:column_type] if args.key?(:column_type)
  @data_validation_rule = args[:data_validation_rule] if args.key?(:data_validation_rule)
end