Sha256: 653b2461c3d7bed7f58a089f320b75e7bf6fd2ac60a5248fc89af05dab0b1768

Contents?: true

Size: 247 Bytes

Versions: 23

Compression:

Stored size: 247 Bytes

Contents

module FbGraph
  class AgeRange < Range
    DEFAULT_MAX_AGE = 9999

    def initialize(attributes = {})
      super attributes[:min], attributes[:max] || DEFAULT_MAX_AGE
    end

    alias_method :min, :first
    alias_method :max, :last
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fb_graph-2.7.17 lib/fb_graph/age_range.rb
fb_graph-2.7.16 lib/fb_graph/age_range.rb
fb_graph-2.7.15 lib/fb_graph/age_range.rb
fb_graph-2.7.14 lib/fb_graph/age_range.rb
fb_graph-2.7.13 lib/fb_graph/age_range.rb
fb_graph-2.7.12 lib/fb_graph/age_range.rb
fb_graph-2.7.11 lib/fb_graph/age_range.rb
fb_graph-2.7.10 lib/fb_graph/age_range.rb
fb_graph-2.7.9 lib/fb_graph/age_range.rb
fb_graph-2.7.8 lib/fb_graph/age_range.rb
fb_graph-2.7.7 lib/fb_graph/age_range.rb
fb_graph-2.7.6 lib/fb_graph/age_range.rb
fb_graph-2.7.5 lib/fb_graph/age_range.rb
fb_graph-2.7.4 lib/fb_graph/age_range.rb
fb_graph-2.7.3 lib/fb_graph/age_range.rb
fb_graph-2.7.2 lib/fb_graph/age_range.rb
fb_graph-2.7.1 lib/fb_graph/age_range.rb
fb_graph-2.7.0 lib/fb_graph/age_range.rb
fb_graph-2.6.7 lib/fb_graph/age_range.rb
fb_graph-2.6.6 lib/fb_graph/age_range.rb