Class: Google::Apis::HealthcareV1beta1::TextSpan

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb

Overview

A span of text in the provided document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextSpan

Returns a new instance of TextSpan.



5027
5028
5029
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 5027

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

Instance Attribute Details

#begin_offsetFixnum

The unicode codepoint index of the beginning of this span. Corresponds to the JSON property beginOffset

Returns:

  • (Fixnum)


5020
5021
5022
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 5020

def begin_offset
  @begin_offset
end

#contentString

The original text contained in this span. Corresponds to the JSON property content

Returns:

  • (String)


5025
5026
5027
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 5025

def content
  @content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5032
5033
5034
5035
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 5032

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