Sha256: 634b8172ee46d1fd391a32ade94b3aad554347fa817909679c1c49db32f6f1a6

Contents?: true

Size: 862 Bytes

Versions: 5

Compression:

Stored size: 862 Bytes

Contents

module Lol
  # Holds the representation of a MiniSeries
  class MiniSeries < Model
    # @!attribute [r] target
    #   @return [String] number of games required to advance
    attr_reader :target

    # @!attribute [r] wins
    #   @return [Fixnum] wins in the miniseries
    attr_reader :wins

    # @!attribute [r] losses
    #   @return [Fixnum] losses in the miniseries
    attr_reader :losses

    # @!attribute [r] time_left_to_play_millis
    #   @return [Fixnum] time left to play the miniseries, expressed in milliseconds
    attr_reader :time_left_to_play_millis

    # @!attribute [r] progress
    #   @return [String] string representation of the miniseries progress.
    #           i.e. "WLN" (Win / Loss / Not played)
    attr_reader :progress

    private

    attr_writer :target, :wins, :losses, :time_left_to_play_millis, :progress
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-lol-0.9.4 lib/lol/mini_series.rb
ruby-lol-0.9.3 lib/lol/mini_series.rb
ruby-lol-0.9.1 lib/lol/mini_series.rb
ruby-lol-0.0.7 lib/lol/mini_series.rb
ruby-lol-0.0.6 lib/lol/mini_series.rb