Sha256: f9ade07767ddd192898437a82f52622cf237a0b06c8ccb2e385cbcec34ff04bd

Contents?: true

Size: 159 Bytes

Versions: 6

Compression:

Stored size: 159 Bytes

Contents

require "surrender/bucket_policy"

module Surrender
  class YearlyPolicy < BucketPolicy
    def bucket(date)
      Date.new(date.year, 1, 1)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
surrender-0.9.0 lib/surrender/yearly_policy.rb
surrender-0.8.4 lib/surrender/yearly_policy.rb
surrender-0.8.3 lib/surrender/yearly_policy.rb
surrender-0.8.2 lib/surrender/yearly_policy.rb
surrender-0.8.1 lib/surrender/yearly_policy.rb
surrender-0.8.0 lib/surrender/yearly_policy.rb