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

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

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DimensionRange

Returns a new instance of DimensionRange



2880
2881
2882
# File 'generated/google/apis/sheets_v4/classes.rb', line 2880

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

Instance Attribute Details

#dimensionString

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

Returns:

  • (String)


2878
2879
2880
# File 'generated/google/apis/sheets_v4/classes.rb', line 2878

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)


2868
2869
2870
# File 'generated/google/apis/sheets_v4/classes.rb', line 2868

def end_index
  @end_index
end

#sheet_idFixnum

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

Returns:

  • (Fixnum)


2873
2874
2875
# File 'generated/google/apis/sheets_v4/classes.rb', line 2873

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)


2863
2864
2865
# File 'generated/google/apis/sheets_v4/classes.rb', line 2863

def start_index
  @start_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2885
2886
2887
2888
2889
2890
# File 'generated/google/apis/sheets_v4/classes.rb', line 2885

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