lib/sportradar/api/soccer/player.rb in sportradar-api-0.19.3 vs lib/sportradar/api/soccer/player.rb in sportradar-api-0.19.4

- old
+ new

@@ -1,11 +1,11 @@ module Sportradar module Api module Soccer class Player < Data - attr_reader :id, :league_group, :name, :type, :nationality, :country_code, :height, :weight, :jersey_number, :preferred_foot, :stats, :game_stats, :date_of_birth, :matches_played, :starter + attr_reader :id, :league_group, :name, :type, :nationality, :country_code, :height, :weight, :jersey_number, :preferred_foot, :stats, :game_stats, :date_of_birth, :matches_played, :starter, :team alias :position :type def initialize(data = {}, league_group: nil, **opts) @response = data @id = data['id'] if data['id'] @@ -112,9 +112,13 @@ @name.split()[1] end def last_name @name.split()[0].delete(',') + end + + def injured? + false end def api @api || Sportradar::Api::Soccer::Api.new(league_group: @league_group) end