class Wisper::Registration
Attributes
listener[R]
on[R]
Public Class Methods
new(listener, options)
click to toggle source
# File lib/wisper/registration/registration.rb, line 7 def initialize(listener, options) @listener = listener @on = ValueObjects::Events.new options[:on] end
Private Instance Methods
should_broadcast?(event)
click to toggle source
# File lib/wisper/registration/registration.rb, line 14 def should_broadcast?(event) on.include? event end