Class: DictionaryAPI::Article
- Inherits:
-
Object
- Object
- DictionaryAPI::Article
- Defined in:
- lib/dictionary_api/article.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
Returns the value of attribute position.
-
#text ⇒ Object
Returns the value of attribute text.
-
#transcription ⇒ Object
Returns the value of attribute transcription.
-
#translation ⇒ Object
Returns the value of attribute translation.
Instance Method Summary collapse
Instance Attribute Details
#position ⇒ Object
Returns the value of attribute position.
5 6 7 |
# File 'lib/dictionary_api/article.rb', line 5 def position @position end |
#text ⇒ Object
Returns the value of attribute text.
5 6 7 |
# File 'lib/dictionary_api/article.rb', line 5 def text @text end |
#transcription ⇒ Object
Returns the value of attribute transcription.
5 6 7 |
# File 'lib/dictionary_api/article.rb', line 5 def transcription @transcription end |
#translation ⇒ Object
Returns the value of attribute translation.
5 6 7 |
# File 'lib/dictionary_api/article.rb', line 5 def translation @translation end |
Instance Method Details
#attributes ⇒ Object
7 8 9 |
# File 'lib/dictionary_api/article.rb', line 7 def attributes {text: text, position: position, transcription: transcription} end |