Class: Google::Apis::HealthcareV1::TextSpan

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

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.

[View source]

5874
5875
5876
# File 'lib/google/apis/healthcare_v1/classes.rb', line 5874

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)

5867
5868
5869
# File 'lib/google/apis/healthcare_v1/classes.rb', line 5867

def begin_offset
  @begin_offset
end

#contentString

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

Returns:

  • (String)

5872
5873
5874
# File 'lib/google/apis/healthcare_v1/classes.rb', line 5872

def content
  @content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

5879
5880
5881
5882
# File 'lib/google/apis/healthcare_v1/classes.rb', line 5879

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