Class: Slanger::Api::EventPublisher
- Inherits:
-
Struct
- Object
- Struct
- Slanger::Api::EventPublisher
- Defined in:
- lib/slanger/api/event_publisher.rb
Instance Attribute Summary collapse
-
#channels ⇒ Object
Returns the value of attribute channels.
-
#event ⇒ Object
Returns the value of attribute event.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#channels ⇒ Object
Returns the value of attribute channels
3 4 5 |
# File 'lib/slanger/api/event_publisher.rb', line 3 def channels @channels end |
#event ⇒ Object
Returns the value of attribute event
3 4 5 |
# File 'lib/slanger/api/event_publisher.rb', line 3 def event @event end |
Class Method Details
.publish(channels, event) ⇒ Object
4 5 6 |
# File 'lib/slanger/api/event_publisher.rb', line 4 def self.publish(channels, event) new(channels, event).publish end |
Instance Method Details
#publish ⇒ Object
8 9 10 11 12 |
# File 'lib/slanger/api/event_publisher.rb', line 8 def publish Array(channels).each do |c| publish_event(c) end end |