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

#cityString

Returns the city

Examples:

school.city #=> "Corvallis"


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

attribute :city, Shale::Type::String

#countryString

Returns the country

Examples:

school.country #=> "USA"


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

attribute :country, Shale::Type::String

#nameString

Returns the school name

Examples:

school.name #=> "Oregon State"


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

attribute :name, Shale::Type::String

#school_classString

Returns the class level

Examples:

school.school_class #=> "4YR JR"


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

attribute :school_class, Shale::Type::String

#stateString

Returns the state

Examples:

school.state #=> "OR"


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

attribute :state, Shale::Type::String