class Google::Apis::SheetsV4::NumberFormat
The number format of a cell.
Attributes
pattern[RW]
Pattern string used for formatting. If not set, a default pattern based on the user's locale will be used if necessary for the given type. See the [Date and Number Formats guide](/sheets/api/guides/formats) for more information about the supported patterns. Corresponds to the JSON property `pattern` @return [String]
type[RW]
The type of the number format. When writing, this field must be set. Corresponds to the JSON property `type` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 6763 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/sheets_v4/classes.rb, line 6768 def update!(**args) @pattern = args[:pattern] if args.key?(:pattern) @type = args[:type] if args.key?(:type) end