Module: TropoRest::Client::Signal
- Included in:
- TropoRest::Client
- Defined in:
- lib/tropo_rest/client/signal.rb
Constant Summary collapse
- PLURAL_PATH =
"sessions/%s/signals".freeze
Instance Method Summary collapse
-
#create_signal(session_id, signal) ⇒ Hashie::Mash
Sends a signal for the given session ID.
Instance Method Details
#create_signal(session_id, signal) ⇒ Hashie::Mash
Sends a signal for the given session ID
19 20 21 22 |
# File 'lib/tropo_rest/client/signal.rb', line 19 def create_signal(session_id, signal) path = get_path(PLURAL_PATH, session_id) post(path, {"signal" => signal}) end |