Class: DictionaryAPI::Article

Inherits:
Object
  • Object
show all
Defined in:
lib/dictionary_api/article.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#positionObject

Returns the value of attribute position.



5
6
7
# File 'lib/dictionary_api/article.rb', line 5

def position
  @position
end

#textObject

Returns the value of attribute text.



5
6
7
# File 'lib/dictionary_api/article.rb', line 5

def text
  @text
end

#transcriptionObject

Returns the value of attribute transcription.



5
6
7
# File 'lib/dictionary_api/article.rb', line 5

def transcription
  @transcription
end

#translationObject

Returns the value of attribute translation.



5
6
7
# File 'lib/dictionary_api/article.rb', line 5

def translation
  @translation
end

Instance Method Details

#attributesObject



7
8
9
# File 'lib/dictionary_api/article.rb', line 7

def attributes
  {text: text, position: position, transcription: transcription}
end