Class: Google::Apis::ScriptV1::ExecutionResponse
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::ExecutionResponse
- 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
An object that provides the return value of a function executed through the
Apps Script Execution API. If an run
call succeeds and the script function
returns successfully, the response body's response
field will contain this
ExecutionResponse
object.
Instance Attribute Summary collapse
-
#result ⇒ Object
The return value of the script function.
-
#status ⇒ String
Corresponds to the JSON property
status
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecutionResponse
constructor
A new instance of ExecutionResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ExecutionResponse
Returns a new instance of ExecutionResponse.
253 254 255 |
# File 'generated/google/apis/script_v1/classes.rb', line 253 def initialize(**args) update!(**args) end |
Instance Attribute Details
#result ⇒ Object
The return value of the script function. The type will match the type returned
in Apps Script. Functions called through the Execution API cannot return Apps
Script-specific objects (such as a Document
or Calendar
); they can only
return primitive types such as a string
, number
, array
, object
, or
boolean
.
Corresponds to the JSON property result
246 247 248 |
# File 'generated/google/apis/script_v1/classes.rb', line 246 def result @result end |
#status ⇒ String
Corresponds to the JSON property status
251 252 253 |
# File 'generated/google/apis/script_v1/classes.rb', line 251 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
258 259 260 261 |
# File 'generated/google/apis/script_v1/classes.rb', line 258 def update!(**args) @result = args[:result] if args.key?(:result) @status = args[:status] if args.key?(:status) end |