Class: Google::Apis::CloudtraceV2::StackFrame

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudtrace_v2/classes.rb,
generated/google/apis/cloudtrace_v2/representations.rb,
generated/google/apis/cloudtrace_v2/representations.rb

Overview

Represents a single stack frame in a stack trace.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StackFrame

Returns a new instance of StackFrame.



455
456
457
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 455

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

Instance Attribute Details

#column_numberFixnum

The column number where the function call appears, if available. This is important in JavaScript because of its anonymous functions. Corresponds to the JSON property columnNumber

Returns:

  • (Fixnum)


423
424
425
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 423

def column_number
  @column_number
end

#file_nameGoogle::Apis::CloudtraceV2::TruncatableString

Represents a string that might be shortened to a specified length. Corresponds to the JSON property fileName



428
429
430
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 428

def file_name
  @file_name
end

#function_nameGoogle::Apis::CloudtraceV2::TruncatableString

Represents a string that might be shortened to a specified length. Corresponds to the JSON property functionName



433
434
435
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 433

def function_name
  @function_name
end

#line_numberFixnum

The line number in file_name where the function call appears. Corresponds to the JSON property lineNumber

Returns:

  • (Fixnum)


438
439
440
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 438

def line_number
  @line_number
end

#load_moduleGoogle::Apis::CloudtraceV2::Module

Binary module. Corresponds to the JSON property loadModule



443
444
445
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 443

def load_module
  @load_module
end

#original_function_nameGoogle::Apis::CloudtraceV2::TruncatableString

Represents a string that might be shortened to a specified length. Corresponds to the JSON property originalFunctionName



448
449
450
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 448

def original_function_name
  @original_function_name
end

#source_versionGoogle::Apis::CloudtraceV2::TruncatableString

Represents a string that might be shortened to a specified length. Corresponds to the JSON property sourceVersion



453
454
455
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 453

def source_version
  @source_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



460
461
462
463
464
465
466
467
468
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 460

def update!(**args)
  @column_number = args[:column_number] if args.key?(:column_number)
  @file_name = args[:file_name] if args.key?(:file_name)
  @function_name = args[:function_name] if args.key?(:function_name)
  @line_number = args[:line_number] if args.key?(:line_number)
  @load_module = args[:load_module] if args.key?(:load_module)
  @original_function_name = args[:original_function_name] if args.key?(:original_function_name)
  @source_version = args[:source_version] if args.key?(:source_version)
end