Class: Google::Apis::ApihubV1::GoogleCloudApihubV1Point

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#characterFixnum

Required. Character position within the line (zero-indexed). Corresponds to the JSON property character

Returns:

  • (Fixnum)


4154
4155
4156
# File 'lib/google/apis/apihub_v1/classes.rb', line 4154

def character
  @character
end

#lineFixnum

Required. Line number (zero-indexed). Corresponds to the JSON property line

Returns:

  • (Fixnum)


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