Sha256: 8f94abef796872f00be0e10791d3ff01e69ba75c6c87932bc8fbccfccd0756ce

Contents?: true

Size: 457 Bytes

Versions: 4

Compression:

Stored size: 457 Bytes

Contents

require 'ruby-freshbooks'

module Skr::Handlers

    class FreshBooksImport

        def self.handler
            lambda do
                resp = if data['stage'] == 'fetch'
                           Skr::Jobs::FreshBooks::Retrieve.from_request(data)
                       else
                           Skr::Jobs::FreshBooks::Import.from_request(data)
                       end
               json_reply resp
            end
        end

    end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stockor-0.5.0 lib/skr/handlers/fresh_books_import.rb
stockor-0.4.0 lib/skr/handlers/fresh_books_import.rb
stockor-0.3.0 lib/skr/handlers/fresh_books_import.rb
stockor-0.2 lib/skr/handlers/fresh_books_import.rb