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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Range

Returns a new instance of Range



1174
1175
1176
# File 'generated/google/apis/slides_v1/classes.rb', line 1174

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)


1172
1173
1174
# File 'generated/google/apis/slides_v1/classes.rb', line 1172

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)


1166
1167
1168
# File 'generated/google/apis/slides_v1/classes.rb', line 1166

def start_index
  @start_index
end

#typeString

The type of range. Corresponds to the JSON property type

Returns:

  • (String)


1160
1161
1162
# File 'generated/google/apis/slides_v1/classes.rb', line 1160

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1179
1180
1181
1182
1183
# File 'generated/google/apis/slides_v1/classes.rb', line 1179

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