Class: Bifrost::Subscriber

Inherits:
Object
  • Object
show all
Defined in:
lib/bifrost/subscriber.rb

Overview

A subscriber is a type that registers interest in receiving messages posted to certain topics

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Subscriber

Returns a new instance of Subscriber.



8
9
10
11
# File 'lib/bifrost/subscriber.rb', line 8

def initialize(name, options = {})
  @name ||= name
  @options ||= options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/bifrost/subscriber.rb', line 6

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/bifrost/subscriber.rb', line 6

def options
  @options
end