Class: Google::Apis::SheetsV4::Slicer

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

Overview

A slicer in a sheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Slicer

Returns a new instance of Slicer.



9350
9351
9352
# File 'lib/google/apis/sheets_v4/classes.rb', line 9350

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

Instance Attribute Details

#positionGoogle::Apis::SheetsV4::EmbeddedObjectPosition

The position of an embedded object such as a chart. Corresponds to the JSON property position



9338
9339
9340
# File 'lib/google/apis/sheets_v4/classes.rb', line 9338

def position
  @position
end

#slicer_idFixnum

The ID of the slicer. Corresponds to the JSON property slicerId

Returns:

  • (Fixnum)


9343
9344
9345
# File 'lib/google/apis/sheets_v4/classes.rb', line 9343

def slicer_id
  @slicer_id
end

#specGoogle::Apis::SheetsV4::SlicerSpec

The specifications of a slicer. Corresponds to the JSON property spec



9348
9349
9350
# File 'lib/google/apis/sheets_v4/classes.rb', line 9348

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9355
9356
9357
9358
9359
# File 'lib/google/apis/sheets_v4/classes.rb', line 9355

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