Sha256: 0b142940b3111777a34a6b405d248e06a0dfb49ec5f77f58e2bac36c45f23137

Contents?: true

Size: 621 Bytes

Versions: 4

Compression:

Stored size: 621 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

4 entries across 4 versions & 1 rubygems

Version Path
rets4r-0.8.2 lib/rets4r/client/transaction.rb
rets4r-0.8.3 lib/rets4r/client/transaction.rb
rets4r-0.8.5 lib/rets4r/client/transaction.rb
rets4r-0.8.4 lib/rets4r/client/transaction.rb