Class: Xberg::DocumentSummary

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocumentSummary

Returns a new instance of DocumentSummary.

Parameters:

  • text: (String)
  • strategy: (enum_SummaryStrategy)
  • token_count: (Integer)


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

def initialize: (text: String, strategy: enum_SummaryStrategy, ?token_count: Integer) -> void

Instance Attribute Details

#strategyenum_SummaryStrategy (readonly)

Returns the value of attribute strategy.

Returns:

  • (enum_SummaryStrategy)


645
646
647
# File 'sig/types.rbs', line 645

def strategy
  @strategy
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


644
645
646
# File 'sig/types.rbs', line 644

def text
  @text
end

#token_countInteger? (readonly)

Returns the value of attribute token_count.

Returns:

  • (Integer, nil)


646
647
648
# File 'sig/types.rbs', line 646

def token_count
  @token_count
end