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.



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

#defObject

Returns the value of attribute def.



2
3
4
# File 'lib/jisho_helper/jisho_result.rb', line 2

def def
  @def
end

#englishObject

Returns the value of attribute english.



2
3
4
# File 'lib/jisho_helper/jisho_result.rb', line 2

def english
  @english
end

#example1Object

Returns the value of attribute example1.



2
3
4
# File 'lib/jisho_helper/jisho_result.rb', line 2

def example1
  @example1
end

#example2Object

Returns the value of attribute example2.



2
3
4
# File 'lib/jisho_helper/jisho_result.rb', line 2

def example2
  @example2
end

#kanaObject

Returns the value of attribute kana.



2
3
4
# File 'lib/jisho_helper/jisho_result.rb', line 2

def kana
  @kana
end

#kanjiObject

Returns the value of attribute kanji.



2
3
4
# File 'lib/jisho_helper/jisho_result.rb', line 2

def kanji
  @kanji
end