Class: Google::Apis::ScriptV1::Value

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/script_v1/classes.rb,
generated/google/apis/script_v1/representations.rb,
generated/google/apis/script_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Value

Returns a new instance of Value.



1144
1145
1146
# File 'generated/google/apis/script_v1/classes.rb', line 1144

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)


1099
1100
1101
# File 'generated/google/apis/script_v1/classes.rb', line 1099

def bool_value
  @bool_value
end

#bytes_valueString

Represents raw byte values. Corresponds to the JSON property bytesValue NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


1106
1107
1108
# File 'generated/google/apis/script_v1/classes.rb', line 1106

def bytes_value
  @bytes_value
end

#date_valueFixnum

Represents a date in ms since the epoch. Corresponds to the JSON property dateValue

Returns:

  • (Fixnum)


1111
1112
1113
# File 'generated/google/apis/script_v1/classes.rb', line 1111

def date_value
  @date_value
end

#list_valueGoogle::Apis::ScriptV1::ListValue

ListValue is a wrapper around a repeated field of values. Corresponds to the JSON property listValue



1116
1117
1118
# File 'generated/google/apis/script_v1/classes.rb', line 1116

def list_value
  @list_value
end

#null_valueString

Represents a null value. Corresponds to the JSON property nullValue

Returns:

  • (String)


1121
1122
1123
# File 'generated/google/apis/script_v1/classes.rb', line 1121

def null_value
  @null_value
end

#number_valueFloat

Represents a double value. Corresponds to the JSON property numberValue

Returns:

  • (Float)


1126
1127
1128
# File 'generated/google/apis/script_v1/classes.rb', line 1126

def number_value
  @number_value
end

#proto_valueHash<String,Object>

Represents a structured proto value. Corresponds to the JSON property protoValue

Returns:

  • (Hash<String,Object>)


1131
1132
1133
# File 'generated/google/apis/script_v1/classes.rb', line 1131

def proto_value
  @proto_value
end

#string_valueString

Represents a string value. Corresponds to the JSON property stringValue

Returns:

  • (String)


1136
1137
1138
# File 'generated/google/apis/script_v1/classes.rb', line 1136

def string_value
  @string_value
end

#struct_valueGoogle::Apis::ScriptV1::Struct

Struct represents a structured data value, consisting of fields which map to dynamically typed values. Corresponds to the JSON property structValue



1142
1143
1144
# File 'generated/google/apis/script_v1/classes.rb', line 1142

def struct_value
  @struct_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
# File 'generated/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