Sha256: d6035074ef520284c1afa24df17dc0525fa4258e57aa2b70da264134b7cbc75d

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

require 'active_support/core_ext/hash/indifferent_access'

module Redistat
  class Result < HashWithIndifferentAccess
    
    attr_accessor :from
    attr_accessor :till
    
    alias :date :from
    alias :date= :from=
    
    def initialize(options = {})
      @from = options[:from] ||= nil
      @till = options[:till] ||= nil
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redistat-0.3.0 lib/redistat/result.rb