class Google::Apis::SheetsV4::ExtendedValue

The kinds of value that a cell in a spreadsheet can have.

Attributes

bool_value[RW]

Represents a boolean value. Corresponds to the JSON property `boolValue` @return [Boolean]

bool_value?[RW]

Represents a boolean value. Corresponds to the JSON property `boolValue` @return [Boolean]

error_value[RW]

An error in a cell. Corresponds to the JSON property `errorValue` @return [Google::Apis::SheetsV4::ErrorValue]

formula_value[RW]

Represents a formula. Corresponds to the JSON property `formulaValue` @return [String]

number_value[RW]

Represents a double value. Note: Dates, Times and DateTimes are represented as doubles in SERIAL_NUMBER format. Corresponds to the JSON property `numberValue` @return [Float]

string_value[RW]

Represents a string value. Leading single quotes are not included. For example, if the user typed `'123` into the UI, this would be represented as a ` stringValue` of `“123”`. Corresponds to the JSON property `stringValue` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 5401
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 5406
def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @error_value = args[:error_value] if args.key?(:error_value)
  @formula_value = args[:formula_value] if args.key?(:formula_value)
  @number_value = args[:number_value] if args.key?(:number_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end