Sha256: 6b70e4efa25789ebf1d073e0e270e1bf25b368da058ad7c743d784234e2d9447

Contents?: true

Size: 210 Bytes

Versions: 11

Compression:

Stored size: 210 Bytes

Contents

module XmlParser
  def respond_to(message)
    if message.include? "ABC"
      result = "123"
    elsif message.include? "DEF"
      result = "Comedy Jam"
    end
    "<response>#{result}</response>"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pinch_hitter-0.7.0 features/support/xml_parser.rb
pinch_hitter-0.6.0 features/support/xml_parser.rb
pinch_hitter-0.5.6 features/support/xml_parser.rb
pinch_hitter-0.5.5 features/support/xml_parser.rb
pinch_hitter-0.5.4 features/support/xml_parser.rb
pinch_hitter-0.5.3 features/support/xml_parser.rb
pinch_hitter-0.5.2 features/support/xml_parser.rb
pinch_hitter-0.5.1 features/support/xml_parser.rb
pinch_hitter-0.5 features/support/xml_parser.rb
pinch_hitter-0.4 features/support/xml_parser.rb
pinch_hitter-0.3 features/support/xml_parser.rb