Class: PokeApi::Common::VersionGroupFlavorText
- Inherits:
-
Object
- Object
- PokeApi::Common::VersionGroupFlavorText
- Defined in:
- lib/poke_api/common/version_group_flavor_text.rb
Overview
VersionGroupFlavorText object handling lists of effects and languages
Instance Attribute Summary collapse
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#version_group ⇒ Object
readonly
Returns the value of attribute version_group.
Instance Method Summary collapse
-
#initialize(data) ⇒ VersionGroupFlavorText
constructor
A new instance of VersionGroupFlavorText.
Constructor Details
#initialize(data) ⇒ VersionGroupFlavorText
Returns a new instance of VersionGroupFlavorText.
9 10 11 12 13 |
# File 'lib/poke_api/common/version_group_flavor_text.rb', line 9 def initialize(data) @text = data[:text] @language = Utility::Language.new(data[:language]) @version_group = VersionGroup.new(data[:version_group]) end |
Instance Attribute Details
#language ⇒ Object (readonly)
Returns the value of attribute language.
5 6 7 |
# File 'lib/poke_api/common/version_group_flavor_text.rb', line 5 def language @language end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/poke_api/common/version_group_flavor_text.rb', line 5 def text @text end |
#version_group ⇒ Object (readonly)
Returns the value of attribute version_group.
5 6 7 |
# File 'lib/poke_api/common/version_group_flavor_text.rb', line 5 def version_group @version_group end |