Class: Google::Apis::WorkflowexecutionsV1beta::Position

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workflowexecutions_v1beta/classes.rb,
lib/google/apis/workflowexecutions_v1beta/representations.rb,
lib/google/apis/workflowexecutions_v1beta/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Position

Returns a new instance of Position.



184
185
186
# File 'lib/google/apis/workflowexecutions_v1beta/classes.rb', line 184

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)


171
172
173
# File 'lib/google/apis/workflowexecutions_v1beta/classes.rb', line 171

def column
  @column
end

#lengthFixnum

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

Returns:

  • (Fixnum)


177
178
179
# File 'lib/google/apis/workflowexecutions_v1beta/classes.rb', line 177

def length
  @length
end

#lineFixnum

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

Returns:

  • (Fixnum)


182
183
184
# File 'lib/google/apis/workflowexecutions_v1beta/classes.rb', line 182

def line
  @line
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



189
190
191
192
193
# File 'lib/google/apis/workflowexecutions_v1beta/classes.rb', line 189

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