Class: Google::Apis::SecuresourcemanagerV1::Position

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

Overview

The position of the code comment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Position

Returns a new instance of Position.



1733
1734
1735
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1733

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

Instance Attribute Details

#lineFixnum

Required. The line number of the comment. Positive value means it's on the new side of the diff, negative value means it's on the old side. Corresponds to the JSON property line

Returns:

  • (Fixnum)


1726
1727
1728
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1726

def line
  @line
end

#pathString

Required. The path of the file. Corresponds to the JSON property path

Returns:

  • (String)


1731
1732
1733
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1731

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1738
1739
1740
1741
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1738

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