Class: JishoHelper::JishoResult

Inherits:
Object
  • Object
show all
Defined in:
lib/jisho_helper/jisho_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#defObject

Returns the value of attribute def.



8
9
10
# File 'lib/jisho_helper/jisho_result.rb', line 8

def def
  @def
end

#englishObject

Returns the value of attribute english.



8
9
10
# File 'lib/jisho_helper/jisho_result.rb', line 8

def english
  @english
end

#example1Object

Returns the value of attribute example1.



8
9
10
# File 'lib/jisho_helper/jisho_result.rb', line 8

def example1
  @example1
end

#example2Object

Returns the value of attribute example2.



8
9
10
# File 'lib/jisho_helper/jisho_result.rb', line 8

def example2
  @example2
end

#kanaObject

Returns the value of attribute kana.



8
9
10
# File 'lib/jisho_helper/jisho_result.rb', line 8

def kana
  @kana
end

#kanjiObject

Returns the value of attribute kanji.



8
9
10
# File 'lib/jisho_helper/jisho_result.rb', line 8

def kanji
  @kanji
end