Class: FootballApi::Substitution

Inherits:
Object
  • Object
show all
Defined in:
lib/football_api/match_substitutions.rb

Instance Method Summary collapse

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