Module: Endpoints::Uuids::Response
- Defined in:
- app/api/endpoints/uuids.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.each {|object.to_json| ... } ⇒ Object
21 22 23 |
# File 'app/api/endpoints/uuids.rb', line 21 def @owner.each yield(object.to_json) end |
Instance Method Details
#multiple_choices ⇒ Object
15 16 17 18 |
# File 'app/api/endpoints/uuids.rb', line 15 def multiple_choices @owner.request.service.status(300) render_body_json_directly end |
#redirect_to(path) ⇒ Object
9 10 11 12 13 |
# File 'app/api/endpoints/uuids.rb', line 9 def redirect_to(path) @owner.request.service.status(301) @owner.request.service.headers('Location' => path) render_body_json_directly end |