Class: MLB::DerbyRound

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/mlb/home_run_derby.rb

Overview

Represents a round in the derby

Instance Attribute Summary collapse

Instance Attribute Details

#matchupsArray<DerbyMatchup>

Returns the matchups

Examples:

round.matchups #=> [#<MLB::DerbyMatchup>, ...]

Returns:



214
# File 'lib/mlb/home_run_derby.rb', line 214

attribute :matchups, DerbyMatchup, collection: true

#num_battersInteger

Returns the number of batters

Examples:

round.num_batters #=> 8

Returns:

  • (Integer)

    the number of batters



206
# File 'lib/mlb/home_run_derby.rb', line 206

attribute :num_batters, Shale::Type::Integer

#roundInteger

Returns the round number

Examples:

round.round #=> 1

Returns:

  • (Integer)

    the round number



198
# File 'lib/mlb/home_run_derby.rb', line 198

attribute :round, Shale::Type::Integer