Class: MiniSeries

Inherits:
Object
  • Object
show all
Defined in:
lib/sightstone/league.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lossesObject

Returns the value of attribute losses.



40
41
42
# File 'lib/sightstone/league.rb', line 40

def losses
  @losses
end

#progressObject

Returns the value of attribute progress.



40
41
42
# File 'lib/sightstone/league.rb', line 40

def progress
  @progress
end

#targetObject

Returns the value of attribute target.



40
41
42
# File 'lib/sightstone/league.rb', line 40

def target
  @target
end

#timeLeftToPlayMillisObject

Returns the value of attribute timeLeftToPlayMillis.



40
41
42
# File 'lib/sightstone/league.rb', line 40

def timeLeftToPlayMillis
  @timeLeftToPlayMillis
end

#winsObject

Returns the value of attribute wins.



40
41
42
# File 'lib/sightstone/league.rb', line 40

def wins
  @wins
end