Class: Google::Apis::HealthcareV1beta1::TextSpan
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::TextSpan
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/representations.rb
Overview
A span of text in the provided document.
Instance Attribute Summary collapse
-
#begin_offset ⇒ Fixnum
The unicode codepoint index of the beginning of this span.
-
#content ⇒ String
The original text contained in this span.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextSpan
constructor
A new instance of TextSpan.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextSpan
Returns a new instance of TextSpan.
7317 7318 7319 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7317 def initialize(**args) update!(**args) end |
Instance Attribute Details
#begin_offset ⇒ Fixnum
The unicode codepoint index of the beginning of this span.
Corresponds to the JSON property beginOffset
7310 7311 7312 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7310 def begin_offset @begin_offset end |
#content ⇒ String
The original text contained in this span.
Corresponds to the JSON property content
7315 7316 7317 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7315 def content @content end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7322 7323 7324 7325 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7322 def update!(**args) @begin_offset = args[:begin_offset] if args.key?(:begin_offset) @content = args[:content] if args.key?(:content) end |