Sha256: fa0e93a961d891a28cc6a1cbeb63672f1e14e9711f269c8cf98600bf6f375935

Contents?: true

Size: 239 Bytes

Versions: 2

Compression:

Stored size: 239 Bytes

Contents

module Jersey::Helpers
  module Success
    def created(*args)
      status(201)
      json(*args)
    end

    def accepted(*args)
      status(202)
      json(*args)
    end

    def no_content(*args)
      status(204)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jersey-0.2.0 lib/jersey/helpers/success.rb
jersey-0.1.0 lib/jersey/helpers/success.rb