Class: GSGraph::AgeRange
- Inherits:
-
Range
- Object
- Range
- GSGraph::AgeRange
- Defined in:
- lib/gs_graph/age_range.rb
Constant Summary collapse
- DEFAULT_MAX_AGE =
9999
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AgeRange
constructor
A new instance of AgeRange.
Constructor Details
#initialize(attributes = {}) ⇒ AgeRange
Returns a new instance of AgeRange.
5 6 7 |
# File 'lib/gs_graph/age_range.rb', line 5 def initialize(attributes = {}) super attributes[:min], attributes[:max] || DEFAULT_MAX_AGE end |