Class: RServiceBus::Test_Bus

Inherits:
Object
  • Object
show all
Defined in:
lib/rservicebus/Test/Bus.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTest_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

#logListObject

Returns the value of attribute logList.



4
5
6
# File 'lib/rservicebus/Test/Bus.rb', line 4

def logList
  @logList
end

#publishListObject

Returns the value of attribute publishList.



4
5
6
# File 'lib/rservicebus/Test/Bus.rb', line 4

def publishList
  @publishList
end

#replyListObject

Returns the value of attribute replyList.



4
5
6
# File 'lib/rservicebus/Test/Bus.rb', line 4

def replyList
  @replyList
end

#sagaDataObject

Returns the value of attribute sagaData.



4
5
6
# File 'lib/rservicebus/Test/Bus.rb', line 4

def sagaData
  @sagaData
end

#sendListObject

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