Class: Google::Apis::SheetsV4::PivotGroupValueMetadata

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

Metadata about a value in a pivot grouping.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PivotGroupValueMetadata

Returns a new instance of PivotGroupValueMetadata.



7498
7499
7500
# File 'lib/google/apis/sheets_v4/classes.rb', line 7498

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

Instance Attribute Details

#collapsedBoolean Also known as: collapsed?

True if the data corresponding to the value is collapsed. Corresponds to the JSON property collapsed

Returns:

  • (Boolean)


7490
7491
7492
# File 'lib/google/apis/sheets_v4/classes.rb', line 7490

def collapsed
  @collapsed
end

#valueGoogle::Apis::SheetsV4::ExtendedValue

The kinds of value that a cell in a spreadsheet can have. Corresponds to the JSON property value



7496
7497
7498
# File 'lib/google/apis/sheets_v4/classes.rb', line 7496

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7503
7504
7505
7506
# File 'lib/google/apis/sheets_v4/classes.rb', line 7503

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