class FootballApi::Goal
Attributes
minute[RW]
owngoal[RW]
penalty[RW]
player[RW]
score[RW]
Public Class Methods
new(hash = {})
click to toggle source
# File lib/football_api/goal.rb, line 5 def initialize(hash = {}) @score = hash[:score] @minute = hash[:minute] @owngoal = hash[:owngoal] @penalty = hash[:penalty] @player = parse_player(hash) end
Public Instance Methods
parse_player(hash = {})
click to toggle source
# File lib/football_api/goal.rb, line 13 def parse_player(hash = {}) FootballApi::Player.new(hash) end