Sha256: 3665cedfc7c887ec633b80d2a3f04975da72fb03d2ded192ed715825b5eb0ba7

Contents?: true

Size: 1.25 KB

Versions: 7

Compression:

Stored size: 1.25 KB

Contents

module GoTransverseTractApi

  module GeneralLedger

    class GLTransactionBatch

      class << self

        #
        # @param {Long} eid
        #
        def find_by_eid eid
          GoTransverseTractApi.get_response_for(self, {eid: eid})
        end

        #
        # @param {Long} batch_num
        #
        def find_by_batch_num batch_num
          GoTransverseTractApi.get_response_for(self, {batch_num: batch_num})
        end

        #
        # @param {DateTime} posted_on
        #
        def find_by_posted_on posted_on
          GoTransverseTractApi.get_response_for(self, {posted_on: posted_on})
        end

        #
        # @param {Boolean} exported
        #
        def find_by_exported exported
          GoTransverseTractApi.get_response_for(self, {exported: exported})
        end

        #
        # @param {String} status
        #
        def find_by_status status
          GoTransverseTractApi.get_response_for(self, {status: status})
        end

        #
        # @param {Long} eid
        # @param {Nokogiri::XML::Document} gl_transaction_batch
        #
        def update eid, gl_transaction_batch
          GoTransverseTractApi.put_request_for(self, {eid: eid}, gl_transaction_batch.to_s)
        end

      end

    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.1.12 lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb
gotransverse-tract-api-0.1.11 lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb
gotransverse-tract-api-0.1.10 lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb
gotransverse-tract-api-0.1.9 lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb
gotransverse-tract-api-0.1.8 lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb
gotransverse-tract-api-0.1.7 lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb
gotransverse-tract-api-0.1.6 lib/gotransverse-tract-api/general_ledger/gl_transaction_batch.rb