Class: Player::Sub

Inherits:
Object
  • Object
show all
Defined in:
lib/fbtxt-pp/models/players.rb

Overview

(nested) sub(stitution) record/struct

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(player:, minute: nil) ⇒ Sub

Returns a new instance of Sub.



106
107
108
109
110
# File 'lib/fbtxt-pp/models/players.rb', line 106

def initialize( player:,
                minute: nil )
    @player = player
    @minute = minute
end

Instance Attribute Details

#minuteObject (readonly)

Returns the value of attribute minute.



104
105
106
# File 'lib/fbtxt-pp/models/players.rb', line 104

def minute
  @minute
end

#playerObject (readonly)

Returns the value of attribute player.



104
105
106
# File 'lib/fbtxt-pp/models/players.rb', line 104

def player
  @player
end