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