Class: Innards::Parsers::LogoutParser

Inherits:
ParserBase
  • Object
show all
Defined in:
lib/innards/parsers/logout_parser.rb

Overview

SAX Parser for RETS Logout Response

Instance Attribute Summary

Attributes inherited from ParserBase

#metadata, #rets_response

Instance Method Summary collapse

Methods inherited from ParserBase

#data_merger, #data_splitter, #element_tracker_switch, #initialize, #response_code, #split_multiline_key_value_pairs, #switch_active?, #valid_rets_response_received?

Constructor Details

This class inherits a constructor from Innards::Parsers::ParserBase

Instance Method Details

#attr(name, value) ⇒ Object



16
17
18
# File 'lib/innards/parsers/logout_parser.rb', line 16

def attr(name, value)
  super
end

#end_element(name) ⇒ Object



12
13
14
# File 'lib/innards/parsers/logout_parser.rb', line 12

def end_element(name)
  super
end

#start_element(name) ⇒ Object



8
9
10
# File 'lib/innards/parsers/logout_parser.rb', line 8

def start_element(name)
  super
end

#text(value) ⇒ Object



20
21
22
23
24
25
# File 'lib/innards/parsers/logout_parser.rb', line 20

def text(value)
  super
  if switch_active?(:"RETS-RESPONSE")
    @metadata.merge! split_multiline_key_value_pairs(value)
  end
end