Class: Tongue
- Inherits:
-
Object
- Object
- Tongue
- Defined in:
- lib/tongues/tongue.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#lang_symbol ⇒ Object
readonly
Returns the value of attribute lang_symbol.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
Instance Method Summary collapse
-
#initialize(lang_symbol, language, confidence) ⇒ Tongue
constructor
A new instance of Tongue.
Constructor Details
#initialize(lang_symbol, language, confidence) ⇒ Tongue
Returns a new instance of Tongue.
4 5 6 7 8 |
# File 'lib/tongues/tongue.rb', line 4 def initialize(lang_symbol, language, confidence) @lang_symbol = lang_symbol @language = language @confidence = confidence end |
Instance Attribute Details
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
2 3 4 |
# File 'lib/tongues/tongue.rb', line 2 def confidence @confidence end |
#lang_symbol ⇒ Object (readonly)
Returns the value of attribute lang_symbol.
2 3 4 |
# File 'lib/tongues/tongue.rb', line 2 def lang_symbol @lang_symbol end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
2 3 4 |
# File 'lib/tongues/tongue.rb', line 2 def language @language end |