Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/punchblock/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ class Event < RayoNode
unjoined
started_speaking
stopped_speaking
mixer_created
mixer_destroyed
}.each { |e| require "punchblock/event/#{e}"}
8 changes: 8 additions & 0 deletions lib/punchblock/event/mixer_created.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# encoding: utf-8

module Punchblock
class Event
class MixerCreated < Event
end
end
end
8 changes: 8 additions & 0 deletions lib/punchblock/event/mixer_destroyed.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# encoding: utf-8

module Punchblock
class Event
class MixerDestroyed < Event
end
end
end
13 changes: 13 additions & 0 deletions spec/punchblock/event/mixer_created_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# encoding: utf-8

require 'spec_helper'

module Punchblock
class Event
describe MixerCreated do
subject { described_class.new target_mixer_name: 'foobar' }

its(:target_mixer_name) { should == 'foobar' }
end
end
end
13 changes: 13 additions & 0 deletions spec/punchblock/event/mixer_destroyed_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# encoding: utf-8

require 'spec_helper'

module Punchblock
class Event
describe MixerDestroyed do
subject { described_class.new target_mixer_name: 'foobar' }

its(:target_mixer_name) { should == 'foobar' }
end
end
end