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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceLocation

Returns a new instance of SourceLocation



814
815
816
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 814

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

Instance Attribute Details

#lineFixnum

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

Returns:

  • (Fixnum)


812
813
814
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 812

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)


807
808
809
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 807

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



819
820
821
822
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 819

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