Class: DictionaryAPI::TranslationArticle

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#animatedObject

Returns the value of attribute animated.



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

def animated
  @animated
end

#aspectObject

Returns the value of attribute aspect.



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

def aspect
  @aspect
end

#exampleObject

Returns the value of attribute example.



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

def example
  @example
end

#genderObject

Returns the value of attribute gender.



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

def gender
  @gender
end

#meaningObject

Returns the value of attribute meaning.



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

def meaning
  @meaning
end

#positionObject

Returns the value of attribute position.



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

def position
  @position
end

#synonymObject

Returns the value of attribute synonym.



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

def synonym
  @synonym
end

#textObject

Returns the value of attribute text.



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

def text
  @text
end

Instance Method Details

#attributesObject



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

def attributes
	{text: text, position: position, gender: gender, animated: animated, synonym: synonym, meaning: meaning, example: example, aspect: aspect}
end