Sha256: 6c9719a1a04c12b5956109665686a547fb6bee2eb324c0527970c9c113ac74ec

Contents?: true

Size: 724 Bytes

Versions: 9

Compression:

Stored size: 724 Bytes

Contents

module RETS4R
  class Client
    class Transaction
      attr_accessor :reply_code, :reply_text, :response, :metadata, :header, :data, :maxrows, 
        :count, :delimiter, :secondary_response
      
      def initialize
        self.maxrows = false
        self.header = []
        self.data = []
        self.delimiter = ?\t
      end
      
      def success?
        return true if self.reply_code == '0'
        return false
      end
      
      def has_data?
        return true if self.data.length > 0
        return false
      end
      
      def maxrows?
        return true if self.maxrows
        return false
      end
      
      def ascii_delimiter
        self.delimiter.chr
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
jkestr-rets4r-1.1.10 lib/rets4r/client/transaction.rb
jkestr-rets4r-1.1.2 lib/rets4r/client/transaction.rb
jkestr-rets4r-1.1.3 lib/rets4r/client/transaction.rb
jkestr-rets4r-1.1.5 lib/rets4r/client/transaction.rb
jkestr-rets4r-1.1.7 lib/rets4r/client/transaction.rb
jkestr-rets4r-1.1.8 lib/rets4r/client/transaction.rb
jkestr-rets4r-1.1.9 lib/rets4r/client/transaction.rb
jwulff-rets4r-1.1.1 lib/rets4r/client/transaction.rb
jwulff-rets4r-1.1.2 lib/rets4r/client/transaction.rb