Class: Google::Apis::SecuresourcemanagerV1::Position
- Inherits:
-
Object
- Object
- Google::Apis::SecuresourcemanagerV1::Position
- 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
-
#line ⇒ Fixnum
Required.
-
#path ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Position
constructor
A new instance of Position.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#line ⇒ Fixnum
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
1726 1727 1728 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 1726 def line @line end |
#path ⇒ String
Required. The path of the file.
Corresponds to the JSON property path
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 |