Sha256: 38b81b187dfa0fc661ed183125b2c66f26987623a6c61fbe11f88cd6639ccd89

Contents?: true

Size: 267 Bytes

Versions: 14

Compression:

Stored size: 267 Bytes

Contents

module ChartCandy
  class BaseChart
    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

14 entries across 14 versions & 1 rubygems

Version Path
chart-candy-0.1.7 lib/chart-candy/base_chart.rb
chart-candy-0.1.6 lib/chart-candy/base_chart.rb
chart-candy-0.1.5 lib/chart-candy/base_chart.rb
chart-candy-0.1.4 lib/chart-candy/base_chart.rb
chart-candy-0.1.3 lib/chart-candy/base_chart.rb
chart-candy-0.1.2 lib/chart-candy/base_chart.rb
chart-candy-0.1.1 lib/chart-candy/base_chart.rb
chart-candy-0.1.0 lib/chart-candy/base_chart.rb
chart-candy-0.0.12 lib/chart-candy/base_chart.rb
chart-candy-0.0.11 lib/chart-candy/base_chart.rb
chart-candy-0.0.10 lib/chart-candy/base_chart.rb
chart-candy-0.0.9 lib/chart-candy/base_chart.rb
chart-candy-0.0.8 lib/chart-candy/base_chart.rb
chart-candy-0.0.7 lib/chart-candy/base_chart.rb