Class: Google::Apis::ScriptV1::ExecutionResponse
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::ExecutionResponse
- 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
An object that provides the return value of a function executed using the Apps
Script API. If the script function returns successfully, the response body's
response field contains this ExecutionResponse
object.
Instance Attribute Summary collapse
-
#result ⇒ Object
The return value of the script function.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecutionResponse
constructor
A new instance of ExecutionResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExecutionResponse
Returns a new instance of ExecutionResponse.
335 336 337 |
# File 'lib/google/apis/script_v1/classes.rb', line 335 def initialize(**args) update!(**args) end |
Instance Attribute Details
#result ⇒ Object
The return value of the script function. The type matches the object type
returned in Apps Script. Functions called using the Apps Script API cannot
return Apps Script-specific objects (such as a Document
or a Calendar
);
they can only return primitive types such as a string
, number
, array
,
object
, or boolean
.
Corresponds to the JSON property result
333 334 335 |
# File 'lib/google/apis/script_v1/classes.rb', line 333 def result @result end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
340 341 342 |
# File 'lib/google/apis/script_v1/classes.rb', line 340 def update!(**args) @result = args[:result] if args.key?(:result) end |