class Google::Apis::ScriptV1::Value

`Value` represents a dynamically typed value which is the outcome of an executed script.

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]

bytes_value[RW]

Represents raw byte values. Corresponds to the JSON property `bytesValue` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

date_value[RW]

Represents a date in ms since the epoch. Corresponds to the JSON property `dateValue` @return [Fixnum]

list_value[RW]

`ListValue` is a wrapper around a repeated field of values. Corresponds to the JSON property `listValue` @return [Google::Apis::ScriptV1::ListValue]

null_value[RW]

Represents a null value. Corresponds to the JSON property `nullValue` @return [String]

number_value[RW]

Represents a double value. Corresponds to the JSON property `numberValue` @return [Float]

proto_value[RW]

Represents a structured proto value. Corresponds to the JSON property `protoValue` @return [Hash<String,Object>]

string_value[RW]

Represents a string value. Corresponds to the JSON property `stringValue` @return [String]

struct_value[RW]

`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. Corresponds to the JSON property `structValue` @return [Google::Apis::ScriptV1::Struct]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/script_v1/classes.rb, line 1144
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/script_v1/classes.rb, line 1149
def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @bytes_value = args[:bytes_value] if args.key?(:bytes_value)
  @date_value = args[:date_value] if args.key?(:date_value)
  @list_value = args[:list_value] if args.key?(:list_value)
  @null_value = args[:null_value] if args.key?(:null_value)
  @number_value = args[:number_value] if args.key?(:number_value)
  @proto_value = args[:proto_value] if args.key?(:proto_value)
  @string_value = args[:string_value] if args.key?(:string_value)
  @struct_value = args[:struct_value] if args.key?(:struct_value)
end