Class: Google::Apis::CloudsearchV1::MatchRange
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::MatchRange
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
Matched range of a snippet [start, end).
Instance Attribute Summary collapse
-
#end ⇒ Fixnum
End of the match in the snippet.
-
#start ⇒ Fixnum
Starting position of the match in the snippet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MatchRange
constructor
A new instance of MatchRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ MatchRange
Returns a new instance of MatchRange
2021 2022 2023 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2021 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ Fixnum
End of the match in the snippet.
Corresponds to the JSON property end
2014 2015 2016 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2014 def end @end end |
#start ⇒ Fixnum
Starting position of the match in the snippet.
Corresponds to the JSON property start
2019 2020 2021 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2019 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2026 2027 2028 2029 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2026 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |