Class: Google::Apis::ApihubV1::GoogleCloudApihubV1Range

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

Object describing where in the file the issue was found.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1Range

Returns a new instance of GoogleCloudApihubV1Range.



4218
4219
4220
# File 'lib/google/apis/apihub_v1/classes.rb', line 4218

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

Instance Attribute Details

#endGoogle::Apis::ApihubV1::GoogleCloudApihubV1Point

Point within the file (line and character). Corresponds to the JSON property end



4211
4212
4213
# File 'lib/google/apis/apihub_v1/classes.rb', line 4211

def end
  @end
end

#startGoogle::Apis::ApihubV1::GoogleCloudApihubV1Point

Point within the file (line and character). Corresponds to the JSON property start



4216
4217
4218
# File 'lib/google/apis/apihub_v1/classes.rb', line 4216

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4223
4224
4225
4226
# File 'lib/google/apis/apihub_v1/classes.rb', line 4223

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