Class: MLB::DerbyHomeRun
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::DerbyHomeRun
- Defined in:
- lib/mlb/home_run_derby.rb
Overview
Represents a home run in the derby
Instance Attribute Summary collapse
-
#is_bonus_time ⇒ Boolean
Returns whether this was hit during bonus time.
-
#launch_angle ⇒ Float
Returns the launch angle.
-
#launch_speed ⇒ Float
Returns the launch speed.
-
#total_distance ⇒ Integer
Returns the total distance of the home run.
Instance Method Summary collapse
-
#bonus_time? ⇒ Boolean
Returns whether this home run was during bonus time.
Instance Attribute Details
#is_bonus_time ⇒ Boolean
Returns whether this was hit during bonus time
37 |
# File 'lib/mlb/home_run_derby.rb', line 37 attribute :is_bonus_time, Shale::Type::Boolean |
#launch_angle ⇒ Float
Returns the launch angle
29 |
# File 'lib/mlb/home_run_derby.rb', line 29 attribute :launch_angle, Shale::Type::Float |
#launch_speed ⇒ Float
Returns the launch speed
21 |
# File 'lib/mlb/home_run_derby.rb', line 21 attribute :launch_speed, Shale::Type::Float |
#total_distance ⇒ Integer
Returns the total distance of the home run
13 |
# File 'lib/mlb/home_run_derby.rb', line 13 attribute :total_distance, Shale::Type::Integer |
Instance Method Details
#bonus_time? ⇒ Boolean
Returns whether this home run was during bonus time
45 46 47 |
# File 'lib/mlb/home_run_derby.rb', line 45 def bonus_time? is_bonus_time end |