Sha256: aeb2ac33fbc733e363feb1e4f26b32d157f55c73d1c7efd03410453af462b372

Contents?: true

Size: 1.82 KB

Versions: 8

Compression:

Stored size: 1.82 KB

Contents

module Lol
  class Champion < Lol::Model
    # @!attribute [r] id
    # @return [Fixnum] id of Champion
    attr_reader :id

    # @!attribute [r] name
    # @return [String] name of Champion
    attr_reader :name

    # @!attribute [r] active
    # @return [true] if the Champion is active
    # @return [false] if the Champion is disabled
    attr_reader :active

    # @!attribute [r] attack_rank
    # @return [Fixnum] attack rank of Champion
    attr_reader :attack_rank

    # @!attribute [r] defense_rank
    # @return [Fixnum] defense rank of Champion
    attr_reader :defense_rank

    # @!attribute [r] magic_rank
    # @return [Fixnum] magic rank of Champion
    attr_reader :magic_rank

    # @!attribute [r] difficulty_rank
    # @return [Fixnum] difficulty rank of Champion
    attr_reader :difficulty_rank

    # @!attribute [r] bot_enabled
    # @return [true] if the Champion is enabled in custom bot games
    # @return [false] if the Champion is disabled in custom bot games
    attr_reader :bot_enabled

    # @!attribute [r] free_to_play
    # @return [true] if the Champion is currently free to play
    # @return [false] if the Champion isn't currently free to play
    attr_reader :free_to_play

    # @!attribute [r] bot_mm_enabled
    # @return [true] if the Champion is enabled in match made bot games
    # @return [false] if the Champion is disabled in match made bot games
    attr_reader :bot_mm_enabled

    # @!attribute [r] ranked_play_enabled
    # @return [true] if the Champion is enabled in ranked play
    # @return [false] if the Champion is disabled in ranked play
    attr_reader :ranked_play_enabled

    private

    attr_writer :id, :name, :active, :attack_rank, :defense_rank, :magic_rank,
                :difficulty_rank, :bot_enabled, :free_to_play, :bot_mm_enabled,
                :ranked_play_enabled
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby-lol-0.9.12 lib/lol/champion.rb
ruby-lol-0.9.11 lib/lol/champion.rb
ruby-lol-0.9.10 lib/lol/champion.rb
ruby-lol-0.9.9 lib/lol/champion.rb
ruby-lol-0.9.8 lib/lol/champion.rb
ruby-lol-0.9.7 lib/lol/champion.rb
ruby-lol-0.9.6 lib/lol/champion.rb
ruby-lol-0.9.5 lib/lol/champion.rb