Class: TheFreeDictionary::Dictionary
- Inherits:
-
Object
- Object
- TheFreeDictionary::Dictionary
- Defined in:
- lib/the_free_dictionary/dictionary.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
Returns the value of attribute language.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
Instance Attribute Details
#language ⇒ Object
Returns the value of attribute language.
7 8 9 |
# File 'lib/the_free_dictionary/dictionary.rb', line 7 def language @language end |
#region ⇒ Object
Returns the value of attribute region.
7 8 9 |
# File 'lib/the_free_dictionary/dictionary.rb', line 7 def region @region end |
Instance Method Details
#find(statement) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/the_free_dictionary/dictionary.rb', line 9 def find(statement) uri = build_uri(statement) response = fetch(uri) sound = build_sound_url(response) transcription = fetch_transcription(response) { sound:, transcription: } end |