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

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

Constructor Details

#initialize(**args) ⇒ NamedRanges

Returns a new instance of NamedRanges.



2854
2855
2856
# File 'lib/google/apis/docs_v1/classes.rb', line 2854

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)


2847
2848
2849
# File 'lib/google/apis/docs_v1/classes.rb', line 2847

def name
  @name
end

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

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



2852
2853
2854
# File 'lib/google/apis/docs_v1/classes.rb', line 2852

def named_ranges
  @named_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2859
2860
2861
2862
# File 'lib/google/apis/docs_v1/classes.rb', line 2859

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