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 length in bytes of text in this character group, e.g.
-
#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.
190 191 192 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 190 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
177 178 179 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 177 def column @column end |
#length ⇒ Fixnum
The length in bytes of text in this character group, e.g. digits of a number,
string length, or AST (abstract syntax tree) node.
Corresponds to the JSON property length
183 184 185 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 183 def length @length end |
#line ⇒ Fixnum
The source code line number the current instruction was generated from.
Corresponds to the JSON property line
188 189 190 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 188 def line @line end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
195 196 197 198 199 |
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 195 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 |