Class: Google::Apis::SheetsV4::ExtendedValue
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::ExtendedValue
- 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
-
#bool_value ⇒ Boolean
(also: #bool_value?)
Represents a boolean value.
-
#error_value ⇒ Google::Apis::SheetsV4::ErrorValue
An error in a cell.
-
#formula_value ⇒ String
Represents a formula.
-
#number_value ⇒ Float
Represents a double value.
-
#string_value ⇒ String
Represents a string value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExtendedValue
constructor
A new instance of ExtendedValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ExtendedValue
Returns a new instance of ExtendedValue
4220 4221 4222 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4220 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
Represents a boolean value.
Corresponds to the JSON property boolValue
4192 4193 4194 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4192 def bool_value @bool_value end |
#error_value ⇒ Google::Apis::SheetsV4::ErrorValue
An error in a cell.
Corresponds to the JSON property errorValue
4198 4199 4200 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4198 def error_value @error_value end |
#formula_value ⇒ String
Represents a formula.
Corresponds to the JSON property formulaValue
4203 4204 4205 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4203 def formula_value @formula_value end |
#number_value ⇒ Float
Represents a double value.
Note: Dates, Times and DateTimes are represented as doubles in
"serial number" format.
Corresponds to the JSON property numberValue
4210 4211 4212 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4210 def number_value @number_value end |
#string_value ⇒ String
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
4218 4219 4220 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4218 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4225 4226 4227 4228 4229 4230 4231 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4225 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 |