Class: Feather::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResult

Returns a new instance of Result.

Parameters:

  • attrs (Hash[Symbol, untyped])


44
# File 'sig/Feather.rbs', line 44

def initialize: (Hash[Symbol, untyped] attrs) -> void

Instance Attribute Details

#candidatesArray[Result] (readonly)

Returns the value of attribute candidates.

Returns:



35
36
37
# File 'sig/Feather.rbs', line 35

def candidates
  @candidates
end

#common_nameString? (readonly)

Returns the value of attribute common_name.

Returns:

  • (String, nil)


30
31
32
# File 'sig/Feather.rbs', line 30

def common_name
  @common_name
end

#confidenceSymbol? (readonly)

Returns the value of attribute confidence.

Returns:

  • (Symbol, nil)


33
34
35
# File 'sig/Feather.rbs', line 33

def confidence
  @confidence
end

#consensus_modelsArray[String]? (readonly)

Returns the value of attribute consensus_models.

Returns:

  • (Array[String], nil)


42
43
44
# File 'sig/Feather.rbs', line 42

def consensus_models
  @consensus_models
end

#costFloat? (readonly)

Returns the value of attribute cost.

Returns:

  • (Float, nil)


38
39
40
# File 'sig/Feather.rbs', line 38

def cost
  @cost
end

#duration_msInteger? (readonly)

Returns the value of attribute duration_ms.

Returns:

  • (Integer, nil)


40
41
42
# File 'sig/Feather.rbs', line 40

def duration_ms
  @duration_ms
end

#familyString? (readonly)

Returns the value of attribute family.

Returns:

  • (String, nil)


32
33
34
# File 'sig/Feather.rbs', line 32

def family
  @family
end

#input_tokensInteger? (readonly)

Returns the value of attribute input_tokens.

Returns:

  • (Integer, nil)


36
37
38
# File 'sig/Feather.rbs', line 36

def input_tokens
  @input_tokens
end

#model_idString? (readonly)

Returns the value of attribute model_id.

Returns:

  • (String, nil)


39
40
41
# File 'sig/Feather.rbs', line 39

def model_id
  @model_id
end

#output_tokensInteger? (readonly)

Returns the value of attribute output_tokens.

Returns:

  • (Integer, nil)


37
38
39
# File 'sig/Feather.rbs', line 37

def output_tokens
  @output_tokens
end

#region_nativeBoolean? (readonly)

Returns the value of attribute region_native.

Returns:

  • (Boolean, nil)


34
35
36
# File 'sig/Feather.rbs', line 34

def region_native
  @region_native
end

#sourceSymbol? (readonly)

Returns the value of attribute source.

Returns:

  • (Symbol, nil)


41
42
43
# File 'sig/Feather.rbs', line 41

def source
  @source
end

#speciesString? (readonly)

Returns the value of attribute species.

Returns:

  • (String, nil)


31
32
33
# File 'sig/Feather.rbs', line 31

def species
  @species
end

Instance Method Details

#confident?Boolean

Returns:

  • (Boolean)


45
# File 'sig/Feather.rbs', line 45

def confident?: () -> bool

#photography_tipsHash[Symbol, String]?

Returns:

  • (Hash[Symbol, String], nil)


47
# File 'sig/Feather.rbs', line 47

def photography_tips: () -> Hash[Symbol, String]?

#region_native?Boolean

Returns:

  • (Boolean)


46
# File 'sig/Feather.rbs', line 46

def region_native?: () -> bool

#to_hHash[Symbol, untyped]

Returns:

  • (Hash[Symbol, untyped])


48
# File 'sig/Feather.rbs', line 48

def to_h: () -> Hash[Symbol, untyped]