Sha256: 18b03704d5843972890eec3828ee3b0585101d95abb23c31cd70f33faceef1f4

Contents?: true

Size: 1.46 KB

Versions: 7

Compression:

Stored size: 1.46 KB

Contents

module GoTransverseTractApi

  module GeneralLedger

    class GLAggregateBatch

      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 {String} status
        #
        def find_by_status status
          GoTransverseTractApi.get_response_for(self, {status: status})
        end

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

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

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

        #
        # @param {Long} eid
        # @param {Nokogiri::XML::Document} gl_aggregate_batch
        #
        def update eid, gl_aggregate_batch
          GoTransverseTractApi.put_request_for(self, {eid: eid}, gl_aggregate_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_aggregate_batch.rb
gotransverse-tract-api-0.1.11 lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb
gotransverse-tract-api-0.1.10 lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb
gotransverse-tract-api-0.1.9 lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb
gotransverse-tract-api-0.1.8 lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb
gotransverse-tract-api-0.1.7 lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb
gotransverse-tract-api-0.1.6 lib/gotransverse-tract-api/general_ledger/gl_aggregate_batch.rb