Class: Google::Apis::DocsV1::NamedRanges

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

Overview

A collection of all the NamedRanges in the document that share a given name.

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) ⇒ NamedRanges

Returns a new instance of NamedRanges



2413
2414
2415
# File 'generated/google/apis/docs_v1/classes.rb', line 2413

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

Instance Attribute Details

#nameString

The name that all the named ranges share. Corresponds to the JSON property name

Returns:

  • (String)


2406
2407
2408
# File 'generated/google/apis/docs_v1/classes.rb', line 2406

def name
  @name
end

#named_rangesArray<Google::Apis::DocsV1::NamedRange>

The NamedRanges that share the same name. Corresponds to the JSON property namedRanges



2411
2412
2413
# File 'generated/google/apis/docs_v1/classes.rb', line 2411

def named_ranges
  @named_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2418
2419
2420
2421
# File 'generated/google/apis/docs_v1/classes.rb', line 2418

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @named_ranges = args[:named_ranges] if args.key?(:named_ranges)
end