Class: Google::Apis::SheetsV4::ChartDateTimeRule

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

Allows you to organize the date-time values in a source data column into buckets based on selected parts of their date or time values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChartDateTimeRule

Returns a new instance of ChartDateTimeRule.



2891
2892
2893
# File 'lib/google/apis/sheets_v4/classes.rb', line 2891

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

Instance Attribute Details

#typeString

The type of date-time grouping to apply. Corresponds to the JSON property type

Returns:

  • (String)


2889
2890
2891
# File 'lib/google/apis/sheets_v4/classes.rb', line 2889

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2896
2897
2898
# File 'lib/google/apis/sheets_v4/classes.rb', line 2896

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