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

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

Inserts data into the spreadsheet starting at the specified coordinate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PasteDataRequest

Returns a new instance of PasteDataRequest.



7326
7327
7328
# File 'lib/google/apis/sheets_v4/classes.rb', line 7326

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



7303
7304
7305
# File 'lib/google/apis/sheets_v4/classes.rb', line 7303

def coordinate
  @coordinate
end

#dataString

The data to insert. Corresponds to the JSON property data

Returns:

  • (String)


7308
7309
7310
# File 'lib/google/apis/sheets_v4/classes.rb', line 7308

def data
  @data
end

#delimiterString

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

Returns:

  • (String)


7313
7314
7315
# File 'lib/google/apis/sheets_v4/classes.rb', line 7313

def delimiter
  @delimiter
end

#htmlBoolean Also known as: html?

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

Returns:

  • (Boolean)


7318
7319
7320
# File 'lib/google/apis/sheets_v4/classes.rb', line 7318

def html
  @html
end

#typeString

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

Returns:

  • (String)


7324
7325
7326
# File 'lib/google/apis/sheets_v4/classes.rb', line 7324

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7331
7332
7333
7334
7335
7336
7337
# File 'lib/google/apis/sheets_v4/classes.rb', line 7331

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