Class: MLB::JobType

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

Overview

Represents a job type

Instance Attribute Summary collapse

Instance Attribute Details

#codeString

Returns the job type code

Examples:

job_type.code #=> "UMPR"

Returns:

  • (String)

    the job type code



15
# File 'lib/mlb/job_type.rb', line 15

attribute :code, Shale::Type::String

#jobString

Returns the job title

Examples:

job_type.job #=> "Umpire"

Returns:

  • (String)

    the job title



23
# File 'lib/mlb/job_type.rb', line 23

attribute :job, Shale::Type::String

#sort_orderInteger

Returns the sort order

Examples:

job_type.sort_order #=> 1

Returns:

  • (Integer)

    the sort order



31
# File 'lib/mlb/job_type.rb', line 31

attribute :sort_order, Shale::Type::Integer