Class: Google::Apis::ScriptV1::Struct

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

Overview

Struct represents a structured data value, consisting of fields which map to dynamically typed values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Struct

Returns a new instance of Struct.



1073
1074
1075
# File 'lib/google/apis/script_v1/classes.rb', line 1073

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

Instance Attribute Details

#fieldsHash<String,Google::Apis::ScriptV1::Value>

Unordered map of dynamically typed values. Corresponds to the JSON property fields

Returns:



1071
1072
1073
# File 'lib/google/apis/script_v1/classes.rb', line 1071

def fields
  @fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1078
1079
1080
# File 'lib/google/apis/script_v1/classes.rb', line 1078

def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
end