Class: Google::Apis::SlidesV1::Range

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/slides_v1/classes.rb,
lib/google/apis/slides_v1/representations.rb,
lib/google/apis/slides_v1/representations.rb

Overview

Specifies a contiguous range of an indexed collection, such as characters in text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Range

Returns a new instance of Range.



2497
2498
2499
# File 'lib/google/apis/slides_v1/classes.rb', line 2497

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

Instance Attribute Details

#end_indexFixnum

The optional zero-based index of the end of the collection. Required for FIXED_RANGE ranges. Corresponds to the JSON property endIndex

Returns:

  • (Fixnum)


2484
2485
2486
# File 'lib/google/apis/slides_v1/classes.rb', line 2484

def end_index
  @end_index
end

#start_indexFixnum

The optional zero-based index of the beginning of the collection. Required for FIXED_RANGE and FROM_START_INDEX ranges. Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


2490
2491
2492
# File 'lib/google/apis/slides_v1/classes.rb', line 2490

def start_index
  @start_index
end

#typeString

The type of range. Corresponds to the JSON property type

Returns:

  • (String)


2495
2496
2497
# File 'lib/google/apis/slides_v1/classes.rb', line 2495

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2502
2503
2504
2505
2506
# File 'lib/google/apis/slides_v1/classes.rb', line 2502

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