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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextSpan

Returns a new instance of TextSpan.



6135
6136
6137
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6135

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)


6128
6129
6130
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6128

def begin_offset
  @begin_offset
end

#contentString

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

Returns:

  • (String)


6133
6134
6135
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6133

def content
  @content
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6140
6141
6142
6143
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 6140

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