Class: MLB::DraftSchool

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

Overview

Represents a school in the draft

Instance Attribute Summary collapse

Instance Attribute Details

#city ⇒ String

Returns the city

Examples:

school.city #=> "Corvallis"

Returns:

  • (String) —

    the city



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

attribute :city, Shale::Type::String

#country ⇒ String

Returns the country

Examples:

school.country #=> "USA"

Returns:

  • (String) —

    the country



47
# File 'lib/mlb/draft_pick.rb', line 47

attribute :country, Shale::Type::String

#name ⇒ String

Returns the school name

Examples:

school.name #=> "Oregon State"

Returns:

  • (String) —

    the school name



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

attribute :name, Shale::Type::String

#school_class ⇒ String

Returns the class level

Examples:

school.school_class #=> "4YR JR"

Returns:

  • (String) —

    the class level



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

attribute :school_class, Shale::Type::String

#state ⇒ String

Returns the state

Examples:

school.state #=> "OR"

Returns:

  • (String) —

    the state



39
# File 'lib/mlb/draft_pick.rb', line 39

attribute :state, Shale::Type::String