lib/punchblock/event/unjoined.rb in punchblock-1.9.4 vs lib/punchblock/event/unjoined.rb in punchblock-2.0.0.beta1

- old
+ new

@@ -3,35 +3,15 @@ module Punchblock class Event class Unjoined < Event register :unjoined, :core - ## # @return [String] the call ID that was unjoined - def call_id - read_attr :'call-id' - end + attribute :call_uri - ## - # @param [String] other the call ID that was unjoined - def call_id=(other) - write_attr :'call-id', other - end - - ## # @return [String] the mixer name that was unjoined - def mixer_name - read_attr :'mixer-name' - end + attribute :mixer_name - ## - # @param [String] other the mixer name that was unjoined - def mixer_name=(other) - write_attr :'mixer-name', other - end - - def inspect_attributes # :nodoc: - [:call_id, :mixer_name] + super - end - end # Unjoined + alias :call_id :call_uri + end end -end # Punchblock +end