Class: Google::Apis::ApihubV1::GoogleCloudApihubV1Point
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1Point
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/representations.rb
Overview
Point within the file (line and character).
Instance Attribute Summary collapse
-
#character ⇒ Fixnum
Required.
-
#line ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1Point
constructor
A new instance of GoogleCloudApihubV1Point.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApihubV1Point
Returns a new instance of GoogleCloudApihubV1Point.
4379 4380 4381 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#character ⇒ Fixnum
Required. Character position within the line (zero-indexed).
Corresponds to the JSON property character
4372 4373 4374 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4372 def character @character end |
#line ⇒ Fixnum
Required. Line number (zero-indexed).
Corresponds to the JSON property line
4377 4378 4379 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4377 def line @line end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4384 4385 4386 4387 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4384 def update!(**args) @character = args[:character] if args.key?(:character) @line = args[:line] if args.key?(:line) end |