Class: Xberg::LanguageConfidence

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLanguageConfidence

Returns a new instance of LanguageConfidence.

Parameters:

  • language: (String)
  • confidence: (Float)
  • proportion: (Float)
  • script: (String)
  • reliable: (Boolean)


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

def initialize: (language: String, confidence: Float, proportion: Float, script: String, reliable: bool) -> void

Instance Attribute Details

#confidenceFloat (readonly)

Returns the value of attribute confidence.

Returns:

  • (Float)


1387
1388
1389
# File 'sig/types.rbs', line 1387

def confidence
  @confidence
end

#languageString (readonly)

Returns the value of attribute language.

Returns:

  • (String)


1386
1387
1388
# File 'sig/types.rbs', line 1386

def language
  @language
end

#proportionFloat (readonly)

Returns the value of attribute proportion.

Returns:

  • (Float)


1388
1389
1390
# File 'sig/types.rbs', line 1388

def proportion
  @proportion
end

#reliableBoolean (readonly)

Returns the value of attribute reliable.

Returns:

  • (Boolean)


1390
1391
1392
# File 'sig/types.rbs', line 1390

def reliable
  @reliable
end

#scriptString (readonly)

Returns the value of attribute script.

Returns:

  • (String)


1389
1390
1391
# File 'sig/types.rbs', line 1389

def script
  @script
end