Class: Jumbotron::Public::Participant

Inherits:
Data
  • Object
show all
Defined in:
app/models/jumbotron/public.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role:, score:, result:, team:, record: nil) ⇒ Participant

Returns a new instance of Participant.



33
34
35
# File 'app/models/jumbotron/public.rb', line 33

def initialize(role:, score:, result:, team:, record: nil)
  super
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record

Returns:

  • (Object)

    the current value of record



32
33
34
# File 'app/models/jumbotron/public.rb', line 32

def record
  @record
end

#resultObject (readonly)

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



32
33
34
# File 'app/models/jumbotron/public.rb', line 32

def result
  @result
end

#roleObject (readonly)

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



32
33
34
# File 'app/models/jumbotron/public.rb', line 32

def role
  @role
end

#scoreObject (readonly)

Returns the value of attribute score

Returns:

  • (Object)

    the current value of score



32
33
34
# File 'app/models/jumbotron/public.rb', line 32

def score
  @score
end

#teamObject (readonly)

Returns the value of attribute team

Returns:

  • (Object)

    the current value of team



32
33
34
# File 'app/models/jumbotron/public.rb', line 32

def team
  @team
end