Class: Tongue

Inherits:
Object
  • Object
show all
Defined in:
lib/tongues/tongue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#confidenceObject (readonly)

Returns the value of attribute confidence.



2
3
4
# File 'lib/tongues/tongue.rb', line 2

def confidence
  @confidence
end

#lang_symbolObject (readonly)

Returns the value of attribute lang_symbol.



2
3
4
# File 'lib/tongues/tongue.rb', line 2

def lang_symbol
  @lang_symbol
end

#languageObject (readonly)

Returns the value of attribute language.



2
3
4
# File 'lib/tongues/tongue.rb', line 2

def language
  @language
end