Class: Google::Apis::SecuritycenterV1::Position

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

Overview

A position in the uploaded text version of a module.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Position

Returns a new instance of Position.



9423
9424
9425
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9423

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

Instance Attribute Details

#column_numberFixnum

Corresponds to the JSON property columnNumber

Returns:

  • (Fixnum)


9416
9417
9418
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9416

def column_number
  @column_number
end

#line_numberFixnum

Corresponds to the JSON property lineNumber

Returns:

  • (Fixnum)


9421
9422
9423
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9421

def line_number
  @line_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9428
9429
9430
9431
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9428

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