Class: Google::Apis::SheetsV4::AppendDimensionRequest

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

Appends rows or columns to the end of a sheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppendDimensionRequest

Returns a new instance of AppendDimensionRequest.



525
526
527
# File 'lib/google/apis/sheets_v4/classes.rb', line 525

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

Instance Attribute Details

#dimensionString

Whether rows or columns should be appended. Corresponds to the JSON property dimension

Returns:

  • (String)


513
514
515
# File 'lib/google/apis/sheets_v4/classes.rb', line 513

def dimension
  @dimension
end

#lengthFixnum

The number of rows or columns to append. Corresponds to the JSON property length

Returns:

  • (Fixnum)


518
519
520
# File 'lib/google/apis/sheets_v4/classes.rb', line 518

def length
  @length
end

#sheet_idFixnum

The sheet to append rows or columns to. Corresponds to the JSON property sheetId

Returns:

  • (Fixnum)


523
524
525
# File 'lib/google/apis/sheets_v4/classes.rb', line 523

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



530
531
532
533
534
# File 'lib/google/apis/sheets_v4/classes.rb', line 530

def update!(**args)
  @dimension = args[:dimension] if args.key?(:dimension)
  @length = args[:length] if args.key?(:length)
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
end