Class: ONVIF::EventAction::SetSynchronizationPoint
- Defined in:
- lib/ruby_onvif_client/event_handing/set_synchronization_point.rb
Instance Method Summary collapse
Methods inherited from Action
#attribute, #callback, #create_event_onvif_message, #create_media_onvif_message, #create_ptz_onvif_message, #initialize, #send_message, #value
Constructor Details
This class inherits a constructor from ONVIF::Action
Instance Method Details
#run(cb) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ruby_onvif_client/event_handing/set_synchronization_point.rb', line 6 def run cb = Message.new namespaces: {:'xmlns:wsdl' => 'http://www.onvif.org/ver10/events/wsdl'} .body = ->(xml) do xml.wsdl(:SetSynchronizationPoint) end do |success, result| if success callback cb, success, result else callback cb, success, result end end end |