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-1.1.26 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.25 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.24 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.23 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.22 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.21 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.20 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.19 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.18 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.17 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.16 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.15 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.14 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.13 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.12 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.11 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.10 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.9 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.8 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb
eitil-1.1.7 eitil_integrate/lib/eitil_integrate/application_exporter/setters.rb