Sha256: 01a5b5007c27072b51d0f750d5784e1907cf37b16752f11609673b1fb9d3f65b
Contents?: true
Size: 579 Bytes
Versions: 4
Compression:
Stored size: 579 Bytes
Contents
module Smite class GodRank < Smite::Object def initialize(data) super(DataTransform.transform_gods(data)) end def level self.class.level(rank) end def mastery mastered? ? 'mastered' : 'unmastered' end def mastered? rank > 0 end def inspect "#<Smite::GodRank '#{god.name}' Lvl. #{rank} (#{level})>" end def self.level(rank) case rank when 0 then 'none' when (1..4) then 'gold' when (5..9) then 'legendary' when 10 then 'diamond' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
smite_ruby-1.5.1 | lib/smite/god_rank.rb |
smite_ruby-1.5.0 | lib/smite/god_rank.rb |
smite_ruby-1.4.9 | lib/smite/god_rank.rb |
smite_ruby-1.4.6 | lib/smite/god_rank.rb |