Class: MLB::Job

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

Overview

Represents a job/role (umpire, datacaster, etc.)

Instance Attribute Summary collapse

Instance Attribute Details

#jersey_numberString

Returns the jersey number

Examples:

job.jersey_number #=> "67"

Returns:

  • (String)

    the jersey number



24
# File 'lib/mlb/job.rb', line 24

attribute :jersey_number, Shale::Type::String

#jobString

Returns the job title

Examples:

job.job #=> "Umpire"

Returns:

  • (String)

    the job title



32
# File 'lib/mlb/job.rb', line 32

attribute :job, Shale::Type::String

#job_idString

Returns the job identifier

Examples:

job.job_id #=> "UMPR"

Returns:

  • (String)

    the job identifier



40
# File 'lib/mlb/job.rb', line 40

attribute :job_id, Shale::Type::String

#personPlayer

Returns the person holding the job

Examples:

job.person #=> #<MLB::Player>

Returns:



16
# File 'lib/mlb/job.rb', line 16

attribute :person, Player

#titleString

Returns the title

Examples:

job.title #=> "Umpire"

Returns:

  • (String)

    the title



48
# File 'lib/mlb/job.rb', line 48

attribute :title, Shale::Type::String