Class: Google::Apis::SheetsV4::DimensionRange

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

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DimensionRange

Returns a new instance of DimensionRange.



5060
5061
5062
# File 'lib/google/apis/sheets_v4/classes.rb', line 5060

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

Instance Attribute Details

#dimensionString

The dimension of the span. Corresponds to the JSON property dimension

Returns:

  • (String)


5043
5044
5045
# File 'lib/google/apis/sheets_v4/classes.rb', line 5043

def dimension
  @dimension
end

#end_indexFixnum

The end (exclusive) of the span, or not set if unbounded. Corresponds to the JSON property endIndex

Returns:

  • (Fixnum)


5048
5049
5050
# File 'lib/google/apis/sheets_v4/classes.rb', line 5048

def end_index
  @end_index
end

#sheet_idFixnum

The sheet this span is on. Corresponds to the JSON property sheetId

Returns:

  • (Fixnum)


5053
5054
5055
# File 'lib/google/apis/sheets_v4/classes.rb', line 5053

def sheet_id
  @sheet_id
end

#start_indexFixnum

The start (inclusive) of the span, or not set if unbounded. Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


5058
5059
5060
# File 'lib/google/apis/sheets_v4/classes.rb', line 5058

def start_index
  @start_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5065
5066
5067
5068
5069
5070
# File 'lib/google/apis/sheets_v4/classes.rb', line 5065

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