Class: Google::Apis::ScriptV1::Struct
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::Struct
- 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
Struct
represents a structured data value, consisting of fields which map to
dynamically typed values.
Instance Attribute Summary collapse
-
#fields ⇒ Hash<String,Google::Apis::ScriptV1::Value>
Unordered map of dynamically typed values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Struct
constructor
A new instance of Struct.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Struct
Returns a new instance of Struct.
1062 1063 1064 |
# File 'generated/google/apis/script_v1/classes.rb', line 1062 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ Hash<String,Google::Apis::ScriptV1::Value>
Unordered map of dynamically typed values.
Corresponds to the JSON property fields
1060 1061 1062 |
# File 'generated/google/apis/script_v1/classes.rb', line 1060 def fields @fields end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1067 1068 1069 |
# File 'generated/google/apis/script_v1/classes.rb', line 1067 def update!(**args) @fields = args[:fields] if args.key?(:fields) end |