Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeAttribution
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeAttribution
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb
Overview
Source code attribution.
Instance Attribute Summary collapse
-
#code_excerpt ⇒ String
Optional.
-
#line_number ⇒ Fixnum
Required.
-
#path ⇒ String
Required.
-
#start_line_number ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaCodeAttribution
constructor
A new instance of GoogleChecksRepoScanV1alphaCodeAttribution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaCodeAttribution
Returns a new instance of GoogleChecksRepoScanV1alphaCodeAttribution.
334 335 336 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 334 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code_excerpt ⇒ String
Optional. Code excerpt where the source was detected along with surrounding
code.
Corresponds to the JSON property codeExcerpt
317 318 319 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 317 def code_excerpt @code_excerpt end |
#line_number ⇒ Fixnum
Required. Line number (1-based).
Corresponds to the JSON property lineNumber
322 323 324 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 322 def line_number @line_number end |
#path ⇒ String
Required. Path of the file.
Corresponds to the JSON property path
327 328 329 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 327 def path @path end |
#start_line_number ⇒ Fixnum
Optional. Start line number of the code excerpt (1-based).
Corresponds to the JSON property startLineNumber
332 333 334 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 332 def start_line_number @start_line_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
339 340 341 342 343 344 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 339 def update!(**args) @code_excerpt = args[:code_excerpt] if args.key?(:code_excerpt) @line_number = args[:line_number] if args.key?(:line_number) @path = args[:path] if args.key?(:path) @start_line_number = args[:start_line_number] if args.key?(:start_line_number) end |