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.
10 11 12 13 14 15 16 17 |
# File 'lib/jisho_helper/jisho_result.rb', line 10 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.
8 9 10 |
# File 'lib/jisho_helper/jisho_result.rb', line 8 def def @def end |
#english ⇒ Object
Returns the value of attribute english.
8 9 10 |
# File 'lib/jisho_helper/jisho_result.rb', line 8 def english @english end |
#example1 ⇒ Object
Returns the value of attribute example1.
8 9 10 |
# File 'lib/jisho_helper/jisho_result.rb', line 8 def example1 @example1 end |
#example2 ⇒ Object
Returns the value of attribute example2.
8 9 10 |
# File 'lib/jisho_helper/jisho_result.rb', line 8 def example2 @example2 end |
#kana ⇒ Object
Returns the value of attribute kana.
8 9 10 |
# File 'lib/jisho_helper/jisho_result.rb', line 8 def kana @kana end |
#kanji ⇒ Object
Returns the value of attribute kanji.
8 9 10 |
# File 'lib/jisho_helper/jisho_result.rb', line 8 def kanji @kanji end |