Class: RETS4R::Client::CompactDataParser

Inherits:
Object
  • Object
show all
Defined in:
lib/rets4r/client/parsers/compact.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#parse_data(column_element, row_elements, delimiter = "\t") ⇒ Object

:nodoc:


12
13
14
15
16
# File 'lib/rets4r/client/parsers/compact.rb', line 12

def parse_data(column_element, row_elements, delimiter = "\t") #:nodoc:
  warn "#{caller.first}: warning: #{self.class}#parse_data is deprecated and will be removed by rets4r 2.0; use RETS4R::ResponseDocument::Search#to_transaction instead"
  headers = RETS4R::ResponseDocument::Search.split_raw_headers(column_element, delimiter)
  row_elements.map {|row| RETS4R::ResponseDocument::Search.row_to_hash(row.text, headers, delimiter) }
end

#parse_results(doc) ⇒ Object

:nodoc:


7
8
9
10
# File 'lib/rets4r/client/parsers/compact.rb', line 7

def parse_results(doc) #:nodoc:
  warn "#{caller.first}: warning: #{self.class}#parse_results is deprecated and will be removed by rets4r 2.0; use RETS4R::ResponseDocument::Search#to_transaction instead"
  doc.to_a
end