Class: Google::Apis::SheetsV4::KeyValueFormat
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::KeyValueFormat
- 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
Formatting options for key value.
Instance Attribute Summary collapse
-
#position ⇒ Google::Apis::SheetsV4::TextPosition
Position settings for text.
-
#text_format ⇒ Google::Apis::SheetsV4::TextFormat
The format of a run of text in a cell.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KeyValueFormat
constructor
A new instance of KeyValueFormat.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KeyValueFormat
Returns a new instance of KeyValueFormat.
6458 6459 6460 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 6458 def initialize(**args) update!(**args) end |
Instance Attribute Details
#position ⇒ Google::Apis::SheetsV4::TextPosition
Position settings for text.
Corresponds to the JSON property position
6450 6451 6452 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 6450 def position @position end |
#text_format ⇒ Google::Apis::SheetsV4::TextFormat
The format of a run of text in a cell. Absent values indicate that the field
isn't specified.
Corresponds to the JSON property textFormat
6456 6457 6458 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 6456 def text_format @text_format end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6463 6464 6465 6466 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 6463 def update!(**args) @position = args[:position] if args.key?(:position) @text_format = args[:text_format] if args.key?(:text_format) end |