Class: DictionaryAPI::DictionaryAPI::Parser
- Inherits:
-
Object
- Object
- DictionaryAPI::DictionaryAPI::Parser
- Defined in:
- lib/dictionary_api/parser.rb
Instance Method Summary collapse
Instance Method Details
#parse(response) ⇒ Object
8 9 10 |
# File 'lib/dictionary_api/parser.rb', line 8 def parse(response) response['def'].inject([]) { |result, response_el| result << self.build_article(response_el) } end |