Class: Google::Apis::SheetsV4::CellData
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::CellData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb
Overview
Data about a specific cell.
Instance Attribute Summary collapse
-
#data_validation ⇒ Google::Apis::SheetsV4::DataValidationRule
A data validation rule.
-
#effective_format ⇒ Google::Apis::SheetsV4::CellFormat
The format of a cell.
-
#effective_value ⇒ Google::Apis::SheetsV4::ExtendedValue
The kinds of value that a cell in a spreadsheet can have.
-
#formatted_value ⇒ String
The formatted value of the cell.
-
#hyperlink ⇒ String
A hyperlink this cell points to, if any.
-
#note ⇒ String
Any note on the cell.
-
#pivot_table ⇒ Google::Apis::SheetsV4::PivotTable
A pivot table.
-
#text_format_runs ⇒ Array<Google::Apis::SheetsV4::TextFormatRun>
Runs of rich text applied to subsections of the cell.
-
#user_entered_format ⇒ Google::Apis::SheetsV4::CellFormat
The format of a cell.
-
#user_entered_value ⇒ Google::Apis::SheetsV4::ExtendedValue
The kinds of value that a cell in a spreadsheet can have.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CellData
constructor
A new instance of CellData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CellData
Returns a new instance of CellData.
759 760 761 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 759 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_validation ⇒ Google::Apis::SheetsV4::DataValidationRule
A data validation rule.
Corresponds to the JSON property dataValidation
730 731 732 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 730 def data_validation @data_validation end |
#effective_format ⇒ Google::Apis::SheetsV4::CellFormat
The format of a cell.
Corresponds to the JSON property effectiveFormat
708 709 710 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 708 def effective_format @effective_format end |
#effective_value ⇒ Google::Apis::SheetsV4::ExtendedValue
The kinds of value that a cell in a spreadsheet can have.
Corresponds to the JSON property effectiveValue
757 758 759 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 757 def effective_value @effective_value end |
#formatted_value ⇒ String
The formatted value of the cell.
This is the value as it's shown to the user.
This field is read-only.
Corresponds to the JSON property formattedValue
720 721 722 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 720 def formatted_value @formatted_value end |
#hyperlink ⇒ String
A hyperlink this cell points to, if any.
This field is read-only. (To set it, use a =HYPERLINK
formula.)
Corresponds to the JSON property hyperlink
703 704 705 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 703 def hyperlink @hyperlink end |
#note ⇒ String
Any note on the cell.
Corresponds to the JSON property note
713 714 715 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 713 def note @note end |
#pivot_table ⇒ Google::Apis::SheetsV4::PivotTable
A pivot table.
Corresponds to the JSON property pivotTable
740 741 742 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 740 def pivot_table @pivot_table end |
#text_format_runs ⇒ Array<Google::Apis::SheetsV4::TextFormatRun>
Runs of rich text applied to subsections of the cell. Runs are only valid
on user entered strings, not formulas, bools, or numbers.
Runs start at specific indexes in the text and continue until the next
run. Properties of a run will continue unless explicitly changed
in a subsequent run (and properties of the first run will continue
the properties of the cell unless explicitly changed).
When writing, the new runs will overwrite any prior runs. When writing a
new user_entered_value, previous runs will be erased.
Corresponds to the JSON property textFormatRuns
752 753 754 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 752 def text_format_runs @text_format_runs end |
#user_entered_format ⇒ Google::Apis::SheetsV4::CellFormat
The format of a cell.
Corresponds to the JSON property userEnteredFormat
735 736 737 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 735 def user_entered_format @user_entered_format end |
#user_entered_value ⇒ Google::Apis::SheetsV4::ExtendedValue
The kinds of value that a cell in a spreadsheet can have.
Corresponds to the JSON property userEnteredValue
725 726 727 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 725 def user_entered_value @user_entered_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
764 765 766 767 768 769 770 771 772 773 774 775 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 764 def update!(**args) @hyperlink = args[:hyperlink] if args.key?(:hyperlink) @effective_format = args[:effective_format] if args.key?(:effective_format) @note = args[:note] if args.key?(:note) @formatted_value = args[:formatted_value] if args.key?(:formatted_value) @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value) @data_validation = args[:data_validation] if args.key?(:data_validation) @user_entered_format = args[:user_entered_format] if args.key?(:user_entered_format) @pivot_table = args[:pivot_table] if args.key?(:pivot_table) @text_format_runs = args[:text_format_runs] if args.key?(:text_format_runs) @effective_value = args[:effective_value] if args.key?(:effective_value) end |