Class: GSGraph::AgeRange

Inherits:
Range
  • Object
show all
Defined in:
lib/gs_graph/age_range.rb

Constant Summary collapse

DEFAULT_MAX_AGE =
9999

Instance Method Summary collapse

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