Module: JsClientBridge::Responses::Ok
- Included in:
- JsClientBridge::Responses
- Defined in:
- lib/js-client-bridge/responses/ok.rb
Instance Method Summary collapse
-
#respond_with_ok(*args) ⇒ Object
Generates a ‘ok’ status response.
Instance Method Details
#respond_with_ok(*args) ⇒ Object
Generates a ‘ok’ status response. If the first parameter is a string is will be used as the _status options. It will also honour custom optionss as long they don’t clash with the standard ones.
Parameters
- message<String>
-
An optional message.
- options<Hash>
-
Custom optionss.
Returns
- JSON String
16 17 18 |
# File 'lib/js-client-bridge/responses/ok.rb', line 16 def respond_with_ok(*args) format_response(*respond_with('ok', args)) end |