Class: MiniSeries
- Inherits:
-
Object
- Object
- MiniSeries
- Defined in:
- lib/sightstone/league.rb
Instance Attribute Summary (collapse)
-
- (Object) losses
Returns the value of attribute losses.
-
- (Object) progress
Returns the value of attribute progress.
-
- (Object) target
Returns the value of attribute target.
-
- (Object) timeLeftToPlayMillis
Returns the value of attribute timeLeftToPlayMillis.
-
- (Object) wins
Returns the value of attribute wins.
Instance Method Summary (collapse)
-
- (MiniSeries) initialize(data)
constructor
A new instance of MiniSeries.
Constructor Details
- (MiniSeries) initialize(data)
Returns a new instance of MiniSeries
41 42 43 44 45 46 47 |
# File 'lib/sightstone/league.rb', line 41 def initialize(data) @losses = data['losses'] @wins = data['wins'] @target = data['target'] @progress = data['progress'] @timeLeftToPlayMillis = data['timeLeftToPlayMillies'] end |
Instance Attribute Details
- (Object) losses
Returns the value of attribute losses
40 41 42 |
# File 'lib/sightstone/league.rb', line 40 def losses @losses end |
- (Object) progress
Returns the value of attribute progress
40 41 42 |
# File 'lib/sightstone/league.rb', line 40 def progress @progress end |
- (Object) target
Returns the value of attribute target
40 41 42 |
# File 'lib/sightstone/league.rb', line 40 def target @target end |
- (Object) timeLeftToPlayMillis
Returns the value of attribute timeLeftToPlayMillis
40 41 42 |
# File 'lib/sightstone/league.rb', line 40 def timeLeftToPlayMillis @timeLeftToPlayMillis end |
- (Object) wins
Returns the value of attribute wins
40 41 42 |
# File 'lib/sightstone/league.rb', line 40 def wins @wins end |