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



5919
5920
5921
# File 'generated/google/apis/sheets_v4/classes.rb', line 5919

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



5896
5897
5898
# File 'generated/google/apis/sheets_v4/classes.rb', line 5896

def coordinate
  @coordinate
end

#dataString

The data to insert. Corresponds to the JSON property data

Returns:

  • (String)


5901
5902
5903
# File 'generated/google/apis/sheets_v4/classes.rb', line 5901

def data
  @data
end

#delimiterString

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

Returns:

  • (String)


5906
5907
5908
# File 'generated/google/apis/sheets_v4/classes.rb', line 5906

def delimiter
  @delimiter
end

#htmlBoolean Also known as: html?

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

Returns:

  • (Boolean)


5911
5912
5913
# File 'generated/google/apis/sheets_v4/classes.rb', line 5911

def html
  @html
end

#typeString

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

Returns:

  • (String)


5917
5918
5919
# File 'generated/google/apis/sheets_v4/classes.rb', line 5917

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5924
5925
5926
5927
5928
5929
5930
# File 'generated/google/apis/sheets_v4/classes.rb', line 5924

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