Class: Google::Apis::ClouddebuggerV2::SourceLocation

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

Overview

Represents a location in the source code.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SourceLocation

Returns a new instance of SourceLocation.



842
843
844
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 842

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

Instance Attribute Details

#columnFixnum

Column within a line. The first column in a line as the value 1. Agents that do not support setting breakpoints on specific columns ignore this field. Corresponds to the JSON property column

Returns:

  • (Fixnum)


830
831
832
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 830

def column
  @column
end

#lineFixnum

Line inside the file. The first line in the file has the value 1. Corresponds to the JSON property line

Returns:

  • (Fixnum)


835
836
837
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 835

def line
  @line
end

#pathString

Path to the source file within the source context of the target binary. Corresponds to the JSON property path

Returns:

  • (String)


840
841
842
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 840

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



847
848
849
850
851
# File 'lib/google/apis/clouddebugger_v2/classes.rb', line 847

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