Class: Google::Apis::SheetsV4::KeyValueFormat
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::KeyValueFormat
- 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
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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ KeyValueFormat
Returns a new instance of KeyValueFormat
6012 6013 6014 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 6012 def initialize(**args) update!(**args) end |
Instance Attribute Details
#position ⇒ Google::Apis::SheetsV4::TextPosition
Position settings for text.
Corresponds to the JSON property position
6004 6005 6006 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 6004 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
6010 6011 6012 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 6010 def text_format @text_format end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6017 6018 6019 6020 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 6017 def update!(**args) @position = args[:position] if args.key?(:position) @text_format = args[:text_format] if args.key?(:text_format) end |