Sha256: 59dd0469df8fba422be6abc1e277a5f1d276cae5f447f0a82ec363ac5862dd6e

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

module Smite
  class Ability < Smite::Object
    def which
      case number
      when 1 then '1st Ability'
      when 2 then '2nd Ability'
      when 3 then '3rd Ability'
      when 4 then 'Ultimate'
      when 5 then 'Passive'
      end
    end

    def number
      ability_number
    end

    def name
      summary
    end

    def inspect
      "#<Smite::Ability '#{summary}'>"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smite_ruby-1.5.1 lib/smite/ability.rb
smite_ruby-1.5.0 lib/smite/ability.rb
smite_ruby-1.4.9 lib/smite/ability.rb