Class: Google::Apis::SheetsV4::TableColumnProperties
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::TableColumnProperties
- 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
-
#column_index ⇒ Fixnum
The 0-based column index.
-
#column_name ⇒ String
The column name.
-
#column_type ⇒ String
The column type.
-
#data_validation_rule ⇒ Google::Apis::SheetsV4::TableColumnDataValidationRule
A data validation rule for a column in a table.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TableColumnProperties
constructor
A new instance of TableColumnProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_index ⇒ Fixnum
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
9957 9958 9959 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9957 def column_index @column_index end |
#column_name ⇒ String
The column name.
Corresponds to the JSON property columnName
9962 9963 9964 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9962 def column_name @column_name end |
#column_type ⇒ String
The column type.
Corresponds to the JSON property columnType
9967 9968 9969 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9967 def column_type @column_type end |
#data_validation_rule ⇒ Google::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 |