Class: Google::Apis::SheetsV4::KeyValueFormat

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

Formatting options for key value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KeyValueFormat

Returns a new instance of KeyValueFormat.



6460
6461
6462
# File 'lib/google/apis/sheets_v4/classes.rb', line 6460

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

Instance Attribute Details

#positionGoogle::Apis::SheetsV4::TextPosition

Position settings for text. Corresponds to the JSON property position



6452
6453
6454
# File 'lib/google/apis/sheets_v4/classes.rb', line 6452

def position
  @position
end

#text_formatGoogle::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



6458
6459
6460
# File 'lib/google/apis/sheets_v4/classes.rb', line 6458

def text_format
  @text_format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6465
6466
6467
6468
# File 'lib/google/apis/sheets_v4/classes.rb', line 6465

def update!(**args)
  @position = args[:position] if args.key?(:position)
  @text_format = args[:text_format] if args.key?(:text_format)
end