Sha256: c11b67709eeff1d414761d16104a5ae51b6a76a966125fe404bfca75221454f9

Contents?: true

Size: 747 Bytes

Versions: 22

Compression:

Stored size: 747 Bytes

Contents

# require "eitil_integrate/application_exporter/initialize"

require "eitil_core/setters/set_ivars"
require "eitil_core/argument_helpers/all_kwargs_to_ivars"
require "action_view"
require "rubyXL"

module EitilIntegrate
  module RubyXL
    class ApplicationExporter

      include ActionView::Helpers::NumberHelper

      attr_accessor :book, :sheet, :x, :y, :start_date, :end_date, :date_range, :write_log

      def initialize(attributes={})

        @start_date ||= attributes[:start_date]
        @end_date   ||= attributes[:end_date]

        set_ivars :start_date, :end_date, :date_range
        
        @book  = ::RubyXL::Workbook.new
        @sheet = @book.worksheets[0]
        @x   ||= 0
        @y   ||= 0
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
eitil-2.0.6 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-2.0.5 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-2.0.4 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-2.0.3 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-2.0.2 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-2.0.1 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-2.0.0 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.4.1 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.4.0 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.12 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.11 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.10 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.9 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.8 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.7 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.6 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.5 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.4 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.3 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb
eitil-1.3.2 eitil_integrate/lib/eitil_integrate/application_exporter/initialize.rb