Sha256: 5ffabf15b81f744363c99ec69821d1b46a2dc60dfb3695355b5d62cf8ad1b3ef

Contents?: true

Size: 641 Bytes

Versions: 3

Compression:

Stored size: 641 Bytes

Contents

module RETS4R
  class Client
    class Transaction
      attr_accessor :reply_code, :reply_text, :response, :metadata,
        :header, :maxrows, :delimiter, :secondary_response

      def initialize
        self.maxrows = false
        self.header = []
        self.delimiter = ?\t
      end

      def success?
        return true if self.reply_code == '0'
        return false
      end

      def maxrows?
        return true if self.maxrows
        return false
      end

      def ascii_delimiter
        self.delimiter.chr
      end

      # For compatibility with the original library.
      alias :data :response
    end
  end
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
rets4r-1.1.18 lib/rets4r/client/transaction.rb
jschairb-rets4r-1.1.18 lib/rets4r/client/transaction.rb
josephholsten-rets4r-1.1.17 lib/rets4r/client/transaction.rb