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

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

Metadata about a value in a pivot grouping.

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

Returns a new instance of PivotGroupValueMetadata



4929
4930
4931
# File 'generated/google/apis/sheets_v4/classes.rb', line 4929

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)


4926
4927
4928
# File 'generated/google/apis/sheets_v4/classes.rb', line 4926

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



4921
4922
4923
# File 'generated/google/apis/sheets_v4/classes.rb', line 4921

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4934
4935
4936
4937
# File 'generated/google/apis/sheets_v4/classes.rb', line 4934

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