Class: Player::Sub
- Inherits:
-
Object
- Object
- Player::Sub
- Defined in:
- lib/fbtxt-pp/models/players.rb
Overview
(nested) sub(stitution) record/struct
Instance Attribute Summary collapse
-
#minute ⇒ Object
readonly
Returns the value of attribute minute.
-
#player ⇒ Object
readonly
Returns the value of attribute player.
Instance Method Summary collapse
-
#initialize(player:, minute: nil) ⇒ Sub
constructor
A new instance of Sub.
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
#minute ⇒ Object (readonly)
Returns the value of attribute minute.
104 105 106 |
# File 'lib/fbtxt-pp/models/players.rb', line 104 def minute @minute end |
#player ⇒ Object (readonly)
Returns the value of attribute player.
104 105 106 |
# File 'lib/fbtxt-pp/models/players.rb', line 104 def player @player end |