Class: Xberg::TextExtractionResult

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTextExtractionResult

Returns a new instance of TextExtractionResult.

Parameters:

  • content: (String)
  • line_count: (Integer)
  • word_count: (Integer)
  • character_count: (Integer)
  • headers: (Array[String])


1128
# File 'sig/types.rbs', line 1128

def initialize: (content: String, line_count: Integer, word_count: Integer, character_count: Integer, ?headers: Array[String]) -> void

Instance Attribute Details

#character_countInteger (readonly)

Returns the value of attribute character_count.

Returns:

  • (Integer)


1125
1126
1127
# File 'sig/types.rbs', line 1125

def character_count
  @character_count
end

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


1122
1123
1124
# File 'sig/types.rbs', line 1122

def content
  @content
end

#headersArray[String] (readonly)

Returns the value of attribute headers.

Returns:

  • (Array[String])


1126
1127
1128
# File 'sig/types.rbs', line 1126

def headers
  @headers
end

#line_countInteger (readonly)

Returns the value of attribute line_count.

Returns:

  • (Integer)


1123
1124
1125
# File 'sig/types.rbs', line 1123

def line_count
  @line_count
end

#word_countInteger (readonly)

Returns the value of attribute word_count.

Returns:

  • (Integer)


1124
1125
1126
# File 'sig/types.rbs', line 1124

def word_count
  @word_count
end