Class: MiniSeries
- Inherits:
-
Object
- Object
- MiniSeries
- Defined in:
- lib/sightstone/league.rb
Instance Attribute Summary collapse
-
#losses ⇒ Object
Returns the value of attribute losses.
-
#progress ⇒ Object
Returns the value of attribute progress.
-
#target ⇒ Object
Returns the value of attribute target.
-
#timeLeftToPlayMillis ⇒ Object
Returns the value of attribute timeLeftToPlayMillis.
-
#wins ⇒ Object
Returns the value of attribute wins.
Instance Method Summary collapse
-
#initialize(data) ⇒ MiniSeries
constructor
A new instance of MiniSeries.
Constructor Details
#initialize(data) ⇒ 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
#losses ⇒ Object
Returns the value of attribute losses.
40 41 42 |
# File 'lib/sightstone/league.rb', line 40 def losses @losses end |
#progress ⇒ Object
Returns the value of attribute progress.
40 41 42 |
# File 'lib/sightstone/league.rb', line 40 def progress @progress end |
#target ⇒ Object
Returns the value of attribute target.
40 41 42 |
# File 'lib/sightstone/league.rb', line 40 def target @target end |
#timeLeftToPlayMillis ⇒ Object
Returns the value of attribute timeLeftToPlayMillis.
40 41 42 |
# File 'lib/sightstone/league.rb', line 40 def timeLeftToPlayMillis @timeLeftToPlayMillis end |
#wins ⇒ Object
Returns the value of attribute wins.
40 41 42 |
# File 'lib/sightstone/league.rb', line 40 def wins @wins end |