Class: MLB::DerbyMatchup

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

Overview

Represents a matchup in the derby round

Instance Attribute Summary collapse

Instance Attribute Details

#bottom_seedDerbyBatter

Returns the bottom seed batter

Examples:

matchup.bottom_seed #=> #<MLB::DerbyBatter>

Returns:



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

attribute :bottom_seed, DerbyBatter

#matchup_idInteger

Returns the matchup ID

Examples:

matchup.matchup_id #=> 1

Returns:

  • (Integer)

    the matchup ID



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

attribute :matchup_id, Shale::Type::Integer

#top_seedDerbyBatter

Returns the top seed batter

Examples:

matchup.top_seed #=> #<MLB::DerbyBatter>

Returns:



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

attribute :top_seed, DerbyBatter