Class: Google::Apis::SheetsV4::PivotGroup
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::PivotGroup
- 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 single grouping (either row or column) in a pivot table.
Instance Attribute Summary collapse
-
#show_totals ⇒ Boolean
(also: #show_totals?)
True if the pivot table should include the totals for this grouping.
-
#sort_order ⇒ String
The order the values in this group should be sorted.
-
#source_column_offset ⇒ Fixnum
The column offset of the source range that this grouping is based on.
-
#value_bucket ⇒ Google::Apis::SheetsV4::PivotGroupSortValueBucket
Information about which values in a pivot group should be used for sorting.
-
#value_metadata ⇒ Array<Google::Apis::SheetsV4::PivotGroupValueMetadata>
Metadata about values in the grouping.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PivotGroup
constructor
A new instance of PivotGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PivotGroup
Returns a new instance of PivotGroup
4032 4033 4034 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4032 def initialize(**args) update!(**args) end |
Instance Attribute Details
#show_totals ⇒ Boolean Also known as: show_totals?
True if the pivot table should include the totals for this grouping.
Corresponds to the JSON property showTotals
4024 4025 4026 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4024 def show_totals @show_totals end |
#sort_order ⇒ String
The order the values in this group should be sorted.
Corresponds to the JSON property sortOrder
4006 4007 4008 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4006 def sort_order @sort_order end |
#source_column_offset ⇒ Fixnum
The column offset of the source range that this grouping is based on.
For example, if the source was C10:E15
, a sourceColumnOffset
of 0
means this group refers to column C
, whereas the offset 1
would refer
to column D
.
Corresponds to the JSON property sourceColumnOffset
4019 4020 4021 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4019 def source_column_offset @source_column_offset end |
#value_bucket ⇒ Google::Apis::SheetsV4::PivotGroupSortValueBucket
Information about which values in a pivot group should be used for sorting.
Corresponds to the JSON property valueBucket
4011 4012 4013 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4011 def value_bucket @value_bucket end |
#value_metadata ⇒ Array<Google::Apis::SheetsV4::PivotGroupValueMetadata>
Metadata about values in the grouping.
Corresponds to the JSON property valueMetadata
4030 4031 4032 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4030 def @value_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4037 4038 4039 4040 4041 4042 4043 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4037 def update!(**args) @sort_order = args[:sort_order] if args.key?(:sort_order) @value_bucket = args[:value_bucket] if args.key?(:value_bucket) @source_column_offset = args[:source_column_offset] if args.key?(:source_column_offset) @show_totals = args[:show_totals] if args.key?(:show_totals) @value_metadata = args[:value_metadata] if args.key?(:value_metadata) end |