class Google::Apis::SheetsV4::DimensionRange

A range along a single dimension on a sheet. All indexes are zero-based. Indexes are half open: the start index is inclusive and the end index is exclusive. Missing indexes indicate the range is unbounded on that side.

Attributes

dimension[RW]

The dimension of the span. Corresponds to the JSON property `dimension` @return [String]

end_index[RW]

The end (exclusive) of the span, or not set if unbounded. Corresponds to the JSON property `endIndex` @return [Fixnum]

sheet_id[RW]

The sheet this span is on. Corresponds to the JSON property `sheetId` @return [Fixnum]

start_index[RW]

The start (inclusive) of the span, or not set if unbounded. Corresponds to the JSON property `startIndex` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 5058
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sheets_v4/classes.rb, line 5063
def update!(**args)
  @dimension = args[:dimension] if args.key?(:dimension)
  @end_index = args[:end_index] if args.key?(:end_index)
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
  @start_index = args[:start_index] if args.key?(:start_index)
end