Sha256: 443db0461b3a1c042b12a525651f43507019193f94c81cab539d2d083a4e5f1e

Contents?: true

Size: 268 Bytes

Versions: 11

Compression:

Stored size: 268 Bytes

Contents

module Plasticine
  class BaseVisual
    def initialize(params)
      @params = params

      @from = params[:from] ? Time.parse(params[:from]) : nil
      @to = params[:to] ? Time.parse(params[:to]) : Time.now
      @step = params[:step] || 'month'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
plasticine-1.2.8 lib/plasticine/base_visual.rb
plasticine-1.2.7 lib/plasticine/base_visual.rb
plasticine-1.2.6 lib/plasticine/base_visual.rb
plasticine-1.2.5 lib/plasticine/base_visual.rb
plasticine-1.2.4 lib/plasticine/base_visual.rb
plasticine-1.2.3 lib/plasticine/base_visual.rb
plasticine-1.2.2 lib/plasticine/base_visual.rb
plasticine-1.2.1 lib/plasticine/base_visual.rb
plasticine-1.2.0 lib/plasticine/base_visual.rb
plasticine-1.1.1 lib/plasticine/base_visual.rb
plasticine-1.1.0 lib/plasticine/base_visual.rb