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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ KeyValueFormat

Returns a new instance of KeyValueFormat.



6479
6480
6481
# File 'generated/google/apis/sheets_v4/classes.rb', line 6479

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

Instance Attribute Details

#positionGoogle::Apis::SheetsV4::TextPosition

Position settings for text. Corresponds to the JSON property position



6471
6472
6473
# File 'generated/google/apis/sheets_v4/classes.rb', line 6471

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



6477
6478
6479
# File 'generated/google/apis/sheets_v4/classes.rb', line 6477

def text_format
  @text_format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6484
6485
6486
6487
# File 'generated/google/apis/sheets_v4/classes.rb', line 6484

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