Class: PokeApi::Common::VersionGroupFlavorText

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

Overview

VersionGroupFlavorText object handling lists of effects and languages

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

#textObject (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_groupObject (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