Class: MLB::BaseballStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::BaseballStat
- Defined in:
- lib/mlb/baseball_stat.rb
Overview
Represents a baseball statistic type
Instance Attribute Summary collapse
-
#is_counting ⇒ Boolean
(also: #counting?)
Returns whether this is a counting stat.
-
#label ⇒ String
Returns the display label for the stat.
-
#lookup_param ⇒ String
Returns the query parameter used in API requests.
-
#name ⇒ String
Returns the internal identifier for the stat.
-
#stat_groups ⇒ Array<Hash>
Returns the applicable stat categories.
Instance Attribute Details
#is_counting ⇒ Boolean Also known as: counting?
Returns whether this is a counting stat
31 |
# File 'lib/mlb/baseball_stat.rb', line 31 attribute :is_counting, Shale::Type::Boolean |
#label ⇒ String
Returns the display label for the stat
39 |
# File 'lib/mlb/baseball_stat.rb', line 39 attribute :label, Shale::Type::String |
#lookup_param ⇒ String
Returns the query parameter used in API requests
23 |
# File 'lib/mlb/baseball_stat.rb', line 23 attribute :lookup_param, Shale::Type::String |
#name ⇒ String
Returns the internal identifier for the stat
15 |
# File 'lib/mlb/baseball_stat.rb', line 15 attribute :name, Shale::Type::String |
#stat_groups ⇒ Array<Hash>
Returns the applicable stat categories
47 |
# File 'lib/mlb/baseball_stat.rb', line 47 attribute :stat_groups, Shale::Type::Value, collection: true |