Class: GodvilleKit::Pantheons
- Inherits:
-
Object
- Object
- GodvilleKit::Pantheons
- Defined in:
- lib/godville_kit/pantheons.rb
Instance Attribute Summary collapse
-
#aggressiveness ⇒ Object
readonly
Returns the value of attribute aggressiveness.
-
#arkeology ⇒ Object
readonly
Returns the value of attribute arkeology.
-
#construction ⇒ Object
readonly
Returns the value of attribute construction.
-
#creation ⇒ Object
readonly
Returns the value of attribute creation.
-
#destruction ⇒ Object
readonly
Returns the value of attribute destruction.
-
#gladiatorship ⇒ Object
readonly
Returns the value of attribute gladiatorship.
-
#gratitude ⇒ Object
readonly
Returns the value of attribute gratitude.
-
#mastery ⇒ Object
readonly
Returns the value of attribute mastery.
-
#might ⇒ Object
readonly
Returns the value of attribute might.
-
#popularity ⇒ Object
readonly
Returns the value of attribute popularity.
-
#savings ⇒ Object
readonly
Returns the value of attribute savings.
-
#storytelling ⇒ Object
readonly
Returns the value of attribute storytelling.
-
#survival ⇒ Object
readonly
Returns the value of attribute survival.
-
#taming ⇒ Object
readonly
Returns the value of attribute taming.
-
#templehood ⇒ Object
readonly
Returns the value of attribute templehood.
-
#unity ⇒ Object
readonly
Returns the value of attribute unity.
Instance Method Summary collapse
-
#initialize(raw_pantheons_data) ⇒ Pantheons
constructor
A new instance of Pantheons.
Constructor Details
#initialize(raw_pantheons_data) ⇒ Pantheons
Returns a new instance of Pantheons.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/godville_kit/pantheons.rb', line 20 def initialize(raw_pantheons_data) pantheon_groups = raw_pantheons_data['groups'].map do |groups| groups['pantheons'] end pantheon_groups.each do |pantheons| pantheons.each do |pantheon| case pantheon['name'].downcase when 'gratitude' then @gratitude = pantheon['position'].to_s when 'might' then @might = pantheon['position'].to_s when 'templehood' then @templehood = pantheon['position'].to_s when 'gladiatorship' then @gladiatorship = pantheon['position'].to_s when 'storytelling' then @storytelling = pantheon['position'].to_s when 'mastery' then @mastery = pantheon['position'].to_s when 'taming' then @taming = pantheon['position'].to_s when 'survival' then @survival = pantheon['position'].to_s when 'creation' then @creation = pantheon['position'].to_s when 'destruction' then @destruction = pantheon['position'].to_s when 'arkeology' then @arkeology = pantheon['position'].to_s when 'unity' then @unity = pantheon['position'].to_s when 'popularity' then @popularity = pantheon['position'].to_s when 'aggressiveness' then @aggressiveness = pantheon['position'].to_s end end end end |
Instance Attribute Details
#aggressiveness ⇒ Object (readonly)
Returns the value of attribute aggressiveness.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def aggressiveness @aggressiveness end |
#arkeology ⇒ Object (readonly)
Returns the value of attribute arkeology.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def arkeology @arkeology end |
#construction ⇒ Object (readonly)
Returns the value of attribute construction.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def construction @construction end |
#creation ⇒ Object (readonly)
Returns the value of attribute creation.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def creation @creation end |
#destruction ⇒ Object (readonly)
Returns the value of attribute destruction.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def destruction @destruction end |
#gladiatorship ⇒ Object (readonly)
Returns the value of attribute gladiatorship.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def gladiatorship @gladiatorship end |
#gratitude ⇒ Object (readonly)
Returns the value of attribute gratitude.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def gratitude @gratitude end |
#mastery ⇒ Object (readonly)
Returns the value of attribute mastery.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def mastery @mastery end |
#might ⇒ Object (readonly)
Returns the value of attribute might.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def might @might end |
#popularity ⇒ Object (readonly)
Returns the value of attribute popularity.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def popularity @popularity end |
#savings ⇒ Object (readonly)
Returns the value of attribute savings.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def savings @savings end |
#storytelling ⇒ Object (readonly)
Returns the value of attribute storytelling.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def storytelling @storytelling end |
#survival ⇒ Object (readonly)
Returns the value of attribute survival.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def survival @survival end |
#taming ⇒ Object (readonly)
Returns the value of attribute taming.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def taming @taming end |
#templehood ⇒ Object (readonly)
Returns the value of attribute templehood.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def templehood @templehood end |
#unity ⇒ Object (readonly)
Returns the value of attribute unity.
3 4 5 |
# File 'lib/godville_kit/pantheons.rb', line 3 def unity @unity end |