Sha256: 3064669464257572c197d96976312c9f48d9cc3fe634ec9c7a9e1eda6988a9ce

Contents?: true

Size: 417 Bytes

Versions: 4

Compression:

Stored size: 417 Bytes

Contents

class ParameterAliasService < Relax::Service
  endpoint 'http://example.com/' do
    action :test do
      parameter :APIKey, :as => :api_key, :required => true

      parser :response do
        attribute :stat
      end
    end
  end
end

FakeWeb.register_uri(:get, 'http://example.com/?APIKey=secret', :string => <<-RESPONSE)
  <?xml version="1.0" encoding="utf-8" ?>
  <response stat="ok">
  </response>
RESPONSE

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
tylerhunt-relax-0.1.2 spec/services/parameter_alias_service.rb
tylerhunt-relax-0.1.3 spec/services/parameter_alias_service.rb
relax-0.1.3 spec/services/parameter_alias_service.rb
relax-0.1.2 spec/services/parameter_alias_service.rb