Class: Google::Apis::ClouddebuggerV2::SourceLocation
- Inherits:
-
Object
- Object
- Google::Apis::ClouddebuggerV2::SourceLocation
- Defined in:
- generated/google/apis/clouddebugger_v2/classes.rb,
generated/google/apis/clouddebugger_v2/representations.rb,
generated/google/apis/clouddebugger_v2/representations.rb
Overview
Represents a location in the source code.
Instance Attribute Summary collapse
-
#line ⇒ Fixnum
Line inside the file.
-
#path ⇒ String
Path to the source file within the source context of the target binary.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceLocation
constructor
A new instance of SourceLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SourceLocation
Returns a new instance of SourceLocation.
734 735 736 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 734 def initialize(**args) update!(**args) end |
Instance Attribute Details
#line ⇒ Fixnum
Line inside the file. The first line in the file has the value 1
.
Corresponds to the JSON property line
732 733 734 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 732 def line @line end |
#path ⇒ String
Path to the source file within the source context of the target binary.
Corresponds to the JSON property path
727 728 729 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 727 def path @path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
739 740 741 742 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 739 def update!(**args) @path = args[:path] if args.key?(:path) @line = args[:line] if args.key?(:line) end |