Class: MLB::ScheduledGameTeam

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

Overview

Represents a team's information in a scheduled game

Instance Attribute Summary collapse

Instance Attribute Details

#is_winner ⇒ Boolean Also known as: winner?

Returns whether this team won the game

Examples:

scheduled_game_team.is_winner #=> true

Returns:

  • (Boolean) —

    whether this team won the game



34
# File 'lib/mlb/scheduled_game.rb', line 34

attribute :is_winner, Shale::Type::Boolean

#score ⇒ Integer

Returns the team's score

Examples:

scheduled_game_team.score #=> 5

Returns:

  • (Integer) —

    the team's score



26
# File 'lib/mlb/scheduled_game.rb', line 26

attribute :score, Shale::Type::Integer

#team ⇒ Team

Returns the team

Examples:

scheduled_game_team.team #=> #<MLB::Team>

Returns:

  • (Team) —

    the team



18
# File 'lib/mlb/scheduled_game.rb', line 18

attribute :team, Team