Class: Google::Apis::DocsV1::CreateNamedRangeRequest

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

Creates a NamedRange referencing the given range.

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

Returns a new instance of CreateNamedRangeRequest



384
385
386
# File 'generated/google/apis/docs_v1/classes.rb', line 384

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

Instance Attribute Details

#nameString

The name of the NamedRange. Names do not need to be unique. Names must be at least 1 character and no more than 256 characters, measured in UTF-16 code units. Corresponds to the JSON property name

Returns:

  • (String)


377
378
379
# File 'generated/google/apis/docs_v1/classes.rb', line 377

def name
  @name
end

#rangeGoogle::Apis::DocsV1::Range

Specifies a contiguous range of text. Corresponds to the JSON property range



382
383
384
# File 'generated/google/apis/docs_v1/classes.rb', line 382

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



389
390
391
392
# File 'generated/google/apis/docs_v1/classes.rb', line 389

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