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

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

A slicer in a sheet.

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

Returns a new instance of Slicer.



8544
8545
8546
# File 'generated/google/apis/sheets_v4/classes.rb', line 8544

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



8532
8533
8534
# File 'generated/google/apis/sheets_v4/classes.rb', line 8532

def position
  @position
end

#slicer_idFixnum

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

Returns:

  • (Fixnum)


8537
8538
8539
# File 'generated/google/apis/sheets_v4/classes.rb', line 8537

def slicer_id
  @slicer_id
end

#specGoogle::Apis::SheetsV4::SlicerSpec

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



8542
8543
8544
# File 'generated/google/apis/sheets_v4/classes.rb', line 8542

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8549
8550
8551
8552
8553
# File 'generated/google/apis/sheets_v4/classes.rb', line 8549

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