Class: RServiceBus::Test_Bus
- Inherits:
-
Object
- Object
- RServiceBus::Test_Bus
- Defined in:
- lib/rservicebus/Test/Bus.rb
Instance Attribute Summary collapse
-
#logList ⇒ Object
Returns the value of attribute logList.
-
#publishList ⇒ Object
Returns the value of attribute publishList.
-
#replyList ⇒ Object
Returns the value of attribute replyList.
-
#sagaData ⇒ Object
Returns the value of attribute sagaData.
-
#sendList ⇒ Object
Returns the value of attribute sendList.
Instance Method Summary collapse
-
#initialize ⇒ Test_Bus
constructor
A new instance of Test_Bus.
- #log(string, verbose = false) ⇒ Object
- #Publish(msg) ⇒ Object
- #Reply(msg) ⇒ Object
- #Send(msg) ⇒ Object
Constructor Details
#initialize ⇒ Test_Bus
Returns a new instance of Test_Bus.
12 13 14 15 16 17 |
# File 'lib/rservicebus/Test/Bus.rb', line 12 def initialize @publishList = Array.new @sendList = Array.new @replyList = Array.new @logList = Array.new end |
Instance Attribute Details
#logList ⇒ Object
Returns the value of attribute logList.
4 5 6 |
# File 'lib/rservicebus/Test/Bus.rb', line 4 def logList @logList end |
#publishList ⇒ Object
Returns the value of attribute publishList.
4 5 6 |
# File 'lib/rservicebus/Test/Bus.rb', line 4 def publishList @publishList end |
#replyList ⇒ Object
Returns the value of attribute replyList.
4 5 6 |
# File 'lib/rservicebus/Test/Bus.rb', line 4 def replyList @replyList end |
#sagaData ⇒ Object
Returns the value of attribute sagaData.
4 5 6 |
# File 'lib/rservicebus/Test/Bus.rb', line 4 def sagaData @sagaData end |
#sendList ⇒ Object
Returns the value of attribute sendList.
4 5 6 |
# File 'lib/rservicebus/Test/Bus.rb', line 4 def sendList @sendList end |
Instance Method Details
#log(string, verbose = false) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/rservicebus/Test/Bus.rb', line 31 def log( string, verbose=false ) item = Hash.new item['string'] = string item['verbose'] = verbose @logList << item end |
#Publish(msg) ⇒ Object
19 20 21 |
# File 'lib/rservicebus/Test/Bus.rb', line 19 def Publish( msg ) @publishList << msg end |
#Reply(msg) ⇒ Object
27 28 29 |
# File 'lib/rservicebus/Test/Bus.rb', line 27 def Reply( msg ) @replyList << msg end |
#Send(msg) ⇒ Object
23 24 25 |
# File 'lib/rservicebus/Test/Bus.rb', line 23 def Send( msg ) @sendList << msg end |