Sha256: bbc9f26e3cafb179ebd5de713ede6f9d12b0c8bfabba3b5365f6c96086e5e882

Contents?: true

Size: 683 Bytes

Versions: 70

Compression:

Stored size: 683 Bytes

Contents

# require "eitil_integrate/application_exporter/setters"

require "eitil_integrate/application_exporter/initialize"

module EitilIntegrate::RubyXL
  class ApplicationExporter

    # The date setter methods allow Exporters to receive dates as strings, which are
    # required to prevent serialization errors in perform_later background jobs.

    private

    def set_start_date
      @start_date.is_a?(Date) ? @start_date : Date.parse(@start_date) if @start_date
    end

    def set_end_date
      @end_date.is_a?(Date) ? @end_date : Date.parse(@end_date) if @end_date
    end

    def set_date_range
      @start_date..@end_date if @start_date && @end_date
    end
    
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

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