Class: Google::Apis::SlidesV1::Range
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SlidesV1::Range
 
 
- 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
- 
  
    
      #end_index  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The optional zero-based index of the end of the collection.
 - 
  
    
      #start_index  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The optional zero-based index of the beginning of the collection.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of range.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Range 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Range.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Range
Returns a new instance of Range
      2508 2509 2510  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2508 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#end_index ⇒ Fixnum
The optional zero-based index of the end of the collection.
Required for FIXED_RANGE ranges.
Corresponds to the JSON property endIndex
      2495 2496 2497  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2495 def end_index @end_index end  | 
  
#start_index ⇒ Fixnum
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
      2501 2502 2503  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2501 def start_index @start_index end  | 
  
#type ⇒ String
The type of range.
Corresponds to the JSON property type
      2506 2507 2508  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2506 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2513 2514 2515 2516 2517  | 
    
      # File 'generated/google/apis/slides_v1/classes.rb', line 2513 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  |