class TauYandexSpeller::SpellCollection
Attributes
spells[R]
Public Class Methods
new(json_data)
click to toggle source
asdad
# File lib/tau_yandex_speller/Model/spell.rb, line 19 def initialize json_data @spells = parse!(json_data) end
Public Instance Methods
each(&block)
click to toggle source
# File lib/tau_yandex_speller/Model/spell.rb, line 11 def each &block @spells.each &block end
Private Instance Methods
parse!(data)
click to toggle source
# File lib/tau_yandex_speller/Model/spell.rb, line 23 def parse! data JSON.parse(data).map! do |record| Spell.new record end end