Class: JishoHelper::JishoResult
- Inherits:
-
Object
- Object
- JishoHelper::JishoResult
- Defined in:
- lib/jisho_helper/jisho_result.rb
Instance Attribute Summary collapse
-
#def ⇒ Object
Returns the value of attribute def.
-
#english ⇒ Object
Returns the value of attribute english.
-
#example1 ⇒ Object
Returns the value of attribute example1.
-
#example2 ⇒ Object
Returns the value of attribute example2.
-
#kana ⇒ Object
Returns the value of attribute kana.
-
#kanji ⇒ Object
Returns the value of attribute kanji.
Instance Method Summary collapse
-
#initialize(kana, kanji, _def, example1, example2, english) ⇒ JishoResult
constructor
A new instance of JishoResult.
Constructor Details
#initialize(kana, kanji, _def, example1, example2, english) ⇒ JishoResult
Returns a new instance of JishoResult.
4 5 6 7 8 9 10 11 |
# File 'lib/jisho_helper/jisho_result.rb', line 4 def initialize kana, kanji, _def, example1, example2, english @english = english @kanji = kanji @kana = kana @def = _def @example1 = example1 @example2 = example2 end |
Instance Attribute Details
#def ⇒ Object
Returns the value of attribute def.
2 3 4 |
# File 'lib/jisho_helper/jisho_result.rb', line 2 def def @def end |
#english ⇒ Object
Returns the value of attribute english.
2 3 4 |
# File 'lib/jisho_helper/jisho_result.rb', line 2 def english @english end |
#example1 ⇒ Object
Returns the value of attribute example1.
2 3 4 |
# File 'lib/jisho_helper/jisho_result.rb', line 2 def example1 @example1 end |
#example2 ⇒ Object
Returns the value of attribute example2.
2 3 4 |
# File 'lib/jisho_helper/jisho_result.rb', line 2 def example2 @example2 end |
#kana ⇒ Object
Returns the value of attribute kana.
2 3 4 |
# File 'lib/jisho_helper/jisho_result.rb', line 2 def kana @kana end |
#kanji ⇒ Object
Returns the value of attribute kanji.
2 3 4 |
# File 'lib/jisho_helper/jisho_result.rb', line 2 def kanji @kanji end |