Class: Google::Apis::SheetsV4::PasteDataRequest

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

Inserts data into the spreadsheet starting at the specified coordinate.

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

Returns a new instance of PasteDataRequest



3364
3365
3366
# File 'generated/google/apis/sheets_v4/classes.rb', line 3364

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

Instance Attribute Details

#coordinateGoogle::Apis::SheetsV4::GridCoordinate

A coordinate in a sheet. All indexes are zero-based. Corresponds to the JSON property coordinate



3352
3353
3354
# File 'generated/google/apis/sheets_v4/classes.rb', line 3352

def coordinate
  @coordinate
end

#dataString

The data to insert. Corresponds to the JSON property data

Returns:

  • (String)


3357
3358
3359
# File 'generated/google/apis/sheets_v4/classes.rb', line 3357

def data
  @data
end

#delimiterString

The delimiter in the data. Corresponds to the JSON property delimiter

Returns:

  • (String)


3362
3363
3364
# File 'generated/google/apis/sheets_v4/classes.rb', line 3362

def delimiter
  @delimiter
end

#htmlBoolean Also known as: html?

True if the data is HTML. Corresponds to the JSON property html

Returns:

  • (Boolean)


3345
3346
3347
# File 'generated/google/apis/sheets_v4/classes.rb', line 3345

def html
  @html
end

#typeString

How the data should be pasted. Corresponds to the JSON property type

Returns:

  • (String)


3340
3341
3342
# File 'generated/google/apis/sheets_v4/classes.rb', line 3340

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3369
3370
3371
3372
3373
3374
3375
# File 'generated/google/apis/sheets_v4/classes.rb', line 3369

def update!(**args)
  @type = args[:type] if args.key?(:type)
  @html = args[:html] if args.key?(:html)
  @coordinate = args[:coordinate] if args.key?(:coordinate)
  @data = args[:data] if args.key?(:data)
  @delimiter = args[:delimiter] if args.key?(:delimiter)
end