Class: Google::Apis::SheetsV4::AddNamedRangeRequest

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

Overview

Adds a named range to the spreadsheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddNamedRangeRequest

Returns a new instance of AddNamedRangeRequest.



281
282
283
# File 'generated/google/apis/sheets_v4/classes.rb', line 281

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

Instance Attribute Details

#named_rangeGoogle::Apis::SheetsV4::NamedRange

A named range. Corresponds to the JSON property namedRange



279
280
281
# File 'generated/google/apis/sheets_v4/classes.rb', line 279

def named_range
  @named_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



286
287
288
# File 'generated/google/apis/sheets_v4/classes.rb', line 286

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