Class: Google::Apis::SheetsV4::PasteDataRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::PasteDataRequest
- 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
-
#coordinate ⇒ Google::Apis::SheetsV4::GridCoordinate
A coordinate in a sheet.
-
#data ⇒ String
The data to insert.
-
#delimiter ⇒ String
The delimiter in the data.
-
#html ⇒ Boolean
(also: #html?)
True if the data is HTML.
-
#type ⇒ String
How the data should be pasted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PasteDataRequest
constructor
A new instance of PasteDataRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PasteDataRequest
Returns a new instance of PasteDataRequest.
7042 7043 7044 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7042 def initialize(**args) update!(**args) end |
Instance Attribute Details
#coordinate ⇒ Google::Apis::SheetsV4::GridCoordinate
A coordinate in a sheet. All indexes are zero-based.
Corresponds to the JSON property coordinate
7019 7020 7021 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7019 def coordinate @coordinate end |
#data ⇒ String
The data to insert.
Corresponds to the JSON property data
7024 7025 7026 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7024 def data @data end |
#delimiter ⇒ String
The delimiter in the data.
Corresponds to the JSON property delimiter
7029 7030 7031 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7029 def delimiter @delimiter end |
#html ⇒ Boolean Also known as: html?
True if the data is HTML.
Corresponds to the JSON property html
7034 7035 7036 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7034 def html @html end |
#type ⇒ String
How the data should be pasted.
Corresponds to the JSON property type
7040 7041 7042 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7040 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7047 7048 7049 7050 7051 7052 7053 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7047 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 |