Class: Google::Apis::SheetsV4::ExtendedValue

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

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

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

Returns a new instance of ExtendedValue.



5111
5112
5113
# File 'generated/google/apis/sheets_v4/classes.rb', line 5111

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

Represents a boolean value. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


5085
5086
5087
# File 'generated/google/apis/sheets_v4/classes.rb', line 5085

def bool_value
  @bool_value
end

#error_valueGoogle::Apis::SheetsV4::ErrorValue

An error in a cell. Corresponds to the JSON property errorValue



5091
5092
5093
# File 'generated/google/apis/sheets_v4/classes.rb', line 5091

def error_value
  @error_value
end

#formula_valueString

Represents a formula. Corresponds to the JSON property formulaValue

Returns:

  • (String)


5096
5097
5098
# File 'generated/google/apis/sheets_v4/classes.rb', line 5096

def formula_value
  @formula_value
end

#number_valueFloat

Represents a double value. Note: Dates, Times and DateTimes are represented as doubles in "serial number" format. Corresponds to the JSON property numberValue

Returns:

  • (Float)


5102
5103
5104
# File 'generated/google/apis/sheets_v4/classes.rb', line 5102

def number_value
  @number_value
end

#string_valueString

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

Returns:

  • (String)


5109
5110
5111
# File 'generated/google/apis/sheets_v4/classes.rb', line 5109

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5116
5117
5118
5119
5120
5121
5122
# File 'generated/google/apis/sheets_v4/classes.rb', line 5116

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