Sha256: b73a517b910d27773788ba844d678f98156ce138dfbf86c4c0fc626264c266bd

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

module FootStats
  class Live < Resource
    class Card
      attr_reader :player_name, :period, :minute, :type

      def initialize(params)
        @player_name = params['@Jogador']
        @period      = params['@Periodo']
        @minute      = params['@Minuto'].to_i
        @type        = params['@Tipo']
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foot_stats-0.1.0 lib/foot_stats/live_card.rb