Class: Google::Apis::SheetsV4::ChartCustomNumberFormatOptions

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

Custom number formatting options for chart attributes.

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

Returns a new instance of ChartCustomNumberFormatOptions.



2613
2614
2615
# File 'generated/google/apis/sheets_v4/classes.rb', line 2613

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

Instance Attribute Details

#prefixString

Custom prefix to be prepended to the chart attribute. This field is optional. Corresponds to the JSON property prefix

Returns:

  • (String)


2606
2607
2608
# File 'generated/google/apis/sheets_v4/classes.rb', line 2606

def prefix
  @prefix
end

#suffixString

Custom suffix to be appended to the chart attribute. This field is optional. Corresponds to the JSON property suffix

Returns:

  • (String)


2611
2612
2613
# File 'generated/google/apis/sheets_v4/classes.rb', line 2611

def suffix
  @suffix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2618
2619
2620
2621
# File 'generated/google/apis/sheets_v4/classes.rb', line 2618

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