Class: Google::Apis::ScriptV1::ScriptStackTraceElement

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

A stack trace through the script that shows where the execution failed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ScriptStackTraceElement

Returns a new instance of ScriptStackTraceElement.


221
222
223
# File 'generated/google/apis/script_v1/classes.rb', line 221

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

Instance Attribute Details

#functionString

The name of the function that failed. Corresponds to the JSON property function

Returns:

  • (String)

214
215
216
# File 'generated/google/apis/script_v1/classes.rb', line 214

def function
  @function
end

#line_numberFixnum

The line number where the script failed. Corresponds to the JSON property lineNumber

Returns:

  • (Fixnum)

219
220
221
# File 'generated/google/apis/script_v1/classes.rb', line 219

def line_number
  @line_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


226
227
228
229
# File 'generated/google/apis/script_v1/classes.rb', line 226

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