Class: Google::Apis::CloudsearchV1::MatchRange
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::MatchRange
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/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.
Constructor Details
#initialize(**args) ⇒ MatchRange
Returns a new instance of MatchRange.
13432 13433 13434 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13432 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ Fixnum
End of the match in the snippet.
Corresponds to the JSON property end
13425 13426 13427 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13425 def end @end end |
#start ⇒ Fixnum
Starting position of the match in the snippet.
Corresponds to the JSON property start
13430 13431 13432 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13430 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13437 13438 13439 13440 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13437 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |