Class: PokeApi::Common::VerboseEffect

Inherits:
Object
  • Object
show all
Defined in:
lib/poke_api/common/verbose_effect.rb

Overview

VerboseEffect object handling lists of effects and languages

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#effectObject (readonly)

Returns the value of attribute effect.



5
6
7
# File 'lib/poke_api/common/verbose_effect.rb', line 5

def effect
  @effect
end

#languageObject (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_effectObject (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