Class: Google::Apis::WorkflowexecutionsV1::Position
- Inherits:
-
Object
- Object
- Google::Apis::WorkflowexecutionsV1::Position
- 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
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
-
#column ⇒ Fixnum
The source code column position (of the line) the current instruction was generated from.
-
#length ⇒ Fixnum
The number of bytes of source code making up this stack trace element.
-
#line ⇒ Fixnum
The source code line number the current instruction was generated from.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Position
constructor
A new instance of Position.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Position
Returns a new instance of Position.
451 452 453 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 451 def initialize(**args) update!(**args) end |
Instance Attribute Details
#column ⇒ Fixnum
The source code column position (of the line) the current instruction was
generated from.
Corresponds to the JSON property column
439 440 441 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 439 def column @column end |
#length ⇒ Fixnum
The number of bytes of source code making up this stack trace element.
Corresponds to the JSON property length
444 445 446 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 444 def length @length end |
#line ⇒ Fixnum
The source code line number the current instruction was generated from.
Corresponds to the JSON property line
449 450 451 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 449 def line @line end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
456 457 458 459 460 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 456 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 |