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.
4161 4162 4163 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4161 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
4154 4155 4156 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4154 def character @character end |
#line ⇒ Fixnum
Required. Line number (zero-indexed).
Corresponds to the JSON property line
4159 4160 4161 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4159 def line @line end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4166 4167 4168 4169 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 4166 def update!(**args) @character = args[:character] if args.key?(:character) @line = args[:line] if args.key?(:line) end |