Module: Jersey::Helpers::Success

Defined in:
lib/jersey/helpers/success.rb

Instance Method Summary collapse

Instance Method Details

#accepted(*args) ⇒ Object



8
9
10
11
# File 'lib/jersey/helpers/success.rb', line 8

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

#created(*args) ⇒ Object



3
4
5
6
# File 'lib/jersey/helpers/success.rb', line 3

def created(*args)
  status(201)
  json(*args)
end

#no_content(*args) ⇒ Object



13
14
15
# File 'lib/jersey/helpers/success.rb', line 13

def no_content(*args)
  status(204)
end