Class: Google::Apis::WorkflowexecutionsV1::Position

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workflowexecutions_v1/classes.rb,
lib/google/apis/workflowexecutions_v1/representations.rb,
lib/google/apis/workflowexecutions_v1/representations.rb
more...

Overview

Position contains source position information about the stack trace element such as line number, column number and length of the code block in bytes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Position

Returns a new instance of Position.

[View source]

304
305
306
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 304

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

Instance Attribute Details

#columnFixnum

The source code column position (of the line) the current instruction was generated from. Corresponds to the JSON property column

Returns:

  • (Fixnum)

292
293
294
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 292

def column
  @column
end

#lengthFixnum

The number of bytes of source code making up this stack trace element. Corresponds to the JSON property length

Returns:

  • (Fixnum)

297
298
299
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 297

def length
  @length
end

#lineFixnum

The source code line number the current instruction was generated from. Corresponds to the JSON property line

Returns:

  • (Fixnum)

302
303
304
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 302

def line
  @line
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

309
310
311
312
313
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 309

def update!(**args)
  @column = args[:column] if args.key?(:column)
  @length = args[:length] if args.key?(:length)
  @line = args[:line] if args.key?(:line)
end