mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
20 lines
368 B
Ruby
20 lines
368 B
Ruby
module Redistat
|
|
class Collection < ::Array
|
|
|
|
attr_accessor :from
|
|
attr_accessor :till
|
|
attr_accessor :depth
|
|
attr_accessor :total
|
|
|
|
def initialize(options = {})
|
|
@from = options[:from] ||= nil
|
|
@till = options[:till] ||= nil
|
|
@depth = options[:depth] ||= nil
|
|
end
|
|
|
|
def total
|
|
@total ||= {}
|
|
end
|
|
|
|
end
|
|
end |