class Footy::Goal

Attributes

minute[RW]
name[RW]
owngoal[RW]
penalty[RW]

Public Class Methods

new(name, minute, owngoal, penalty) click to toggle source
# File lib/footy/goal.rb, line 4
def initialize name, minute, owngoal, penalty
  @name    = name
  @minute  = minute
  @owngoal = owngoal
  @penalty = penalty
end

Public Instance Methods

owngoal?() click to toggle source
# File lib/footy/goal.rb, line 11
def owngoal?
  owngoal
end
penalty?() click to toggle source
# File lib/footy/goal.rb, line 15
def penalty?
  penalty
end