Sha256: cb52d673f16334554d070dabcb54721bbfab46d3c5280a68309a96c13159f44d
Contents?: true
Size: 478 Bytes
Versions: 4
Compression:
Stored size: 478 Bytes
Contents
class TestCustomParser def initialize(options = {}, &block) end def parse(input) 'parsed' end end class CustomParserService < Relax::Service endpoint "http://test.local/rest" do action :test do parser TestCustomParser do element :status, :attribute => :stat end end end end FakeWeb.register_uri(:get, 'http://test.local/rest', :string => <<-RESPONSE) <?xml version="1.0" encoding="utf-8" ?> <test stat="ok"> </test> RESPONSE
Version data entries
4 entries across 4 versions & 2 rubygems