Class: Google::Apis::SheetsV4::TextFormatRun

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

A run of a text format. The format of this run continues until the start index of the next run. When updating, all fields must be set.

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) ⇒ TextFormatRun

Returns a new instance of TextFormatRun



2299
2300
2301
# File 'generated/google/apis/sheets_v4/classes.rb', line 2299

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

Instance Attribute Details

#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 format



2297
2298
2299
# File 'generated/google/apis/sheets_v4/classes.rb', line 2297

def format
  @format
end

#start_indexFixnum

The character index where this run starts. Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


2291
2292
2293
# File 'generated/google/apis/sheets_v4/classes.rb', line 2291

def start_index
  @start_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2304
2305
2306
2307
# File 'generated/google/apis/sheets_v4/classes.rb', line 2304

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