Class: MLB::DerbyInfo

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

Overview

Represents home run derby info

Instance Attribute Summary collapse

Instance Attribute Details

#idInteger

Returns the derby ID

Examples:

info.id #=> 511101

Returns:

  • (Integer)

    the ID



231
# File 'lib/mlb/home_run_derby.rb', line 231

attribute :id, Shale::Type::Integer

#nameString

Returns the derby name

Examples:

info.name #=> "2024 Home Run Derby"

Returns:

  • (String)

    the name



239
# File 'lib/mlb/home_run_derby.rb', line 239

attribute :name, Shale::Type::String