Class: FootballApi::Substitution
- Inherits:
-
Object
- Object
- FootballApi::Substitution
- Defined in:
- lib/football_api/match_substitutions.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Substitution
constructor
A new instance of Substitution.
Constructor Details
#initialize(opts = {}) ⇒ Substitution
Returns a new instance of Substitution.
19 20 21 22 23 24 25 |
# File 'lib/football_api/match_substitutions.rb', line 19 def initialize(opts = {}) @off = opts[:off] @on = opts[:on] @minute = opts[:minute] @on_id = opts[:on_id] @off_id = opts[:off_id] end |