Sha256: 2e7a251f5386fd8bec1f890f6a681fa3bad9a7aa7db03a61ef78b757d4a69657
Contents?: true
Size: 509 Bytes
Versions: 24
Compression:
Stored size: 509 Bytes
Contents
# encoding: utf-8 module Punchblock class Event < RayoNode def self.new(options = {}) super().tap do |new_node| case options when Nokogiri::XML::Node new_node.inherit options when Hash options.each_pair { |k,v| new_node.send :"#{k}=", v } end end end end end %w{ answered asterisk complete dtmf end joined offer ringing unjoined started_speaking stopped_speaking }.each { |e| require "punchblock/event/#{e}"}
Version data entries
24 entries across 24 versions & 1 rubygems