Sha256: c13d629f7c7ff81932eeedf9dbdd44314a581a3af6cb67e87e9700f4716361ec
Contents?: true
Size: 829 Bytes
Versions: 20
Compression:
Stored size: 829 Bytes
Contents
module Punchblock module Command class Answer < CommandNode register :answer, :core include HasHeaders ## # Create an Rayo answer command. This is equivalent to a SIP "200 OK" # # @param [Hash] options # @option options [Array[Header], Hash, Optional] :headers SIP headers to attach to # the call. Can be either a hash of key-value pairs, or an array of # Header objects. # # @return [Command::Answer] a formatted Rayo answer command # # @example # Answer.new.to_xml # # returns: # <answer xmlns="urn:xmpp:rayo:1"/> def self.new(options = {}) super().tap do |new_node| new_node.headers = options[:headers] end end end # Answer end # Command end # Punchblock
Version data entries
20 entries across 20 versions & 1 rubygems