Class: MassTransit::Config
- Inherits:
-
Object
- Object
- MassTransit::Config
- Defined in:
- lib/masstransit/config.rb
Overview
A class that groups all of the configuration options and provides defaults Currently AMQP is the only transport option
Instance Attribute Summary collapse
-
#insist ⇒ Object
Returns the value of attribute insist.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#queue ⇒ Object
Returns the value of attribute queue.
-
#serializer ⇒ Object
Returns the value of attribute serializer.
-
#server ⇒ Object
Returns the value of attribute server.
-
#transport ⇒ Object
Returns the value of attribute transport.
-
#user ⇒ Object
Returns the value of attribute user.
-
#vdir ⇒ Object
Returns the value of attribute vdir.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/masstransit/config.rb', line 19 def initialize() @server = 'localhost' @port = 5672 @vdir = '/' @user = 'guest' @password = 'guest' @insist = true @transport = Amqp.new() @serializer = Serializer.new @queue = 'default_queue' end |
Instance Attribute Details
#insist ⇒ Object
Returns the value of attribute insist.
14 15 16 |
# File 'lib/masstransit/config.rb', line 14 def insist @insist end |
#password ⇒ Object
Returns the value of attribute password.
13 14 15 |
# File 'lib/masstransit/config.rb', line 13 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
10 11 12 |
# File 'lib/masstransit/config.rb', line 10 def port @port end |
#queue ⇒ Object
Returns the value of attribute queue.
17 18 19 |
# File 'lib/masstransit/config.rb', line 17 def queue @queue end |
#serializer ⇒ Object
Returns the value of attribute serializer.
16 17 18 |
# File 'lib/masstransit/config.rb', line 16 def serializer @serializer end |
#server ⇒ Object
Returns the value of attribute server.
9 10 11 |
# File 'lib/masstransit/config.rb', line 9 def server @server end |
#transport ⇒ Object
Returns the value of attribute transport.
15 16 17 |
# File 'lib/masstransit/config.rb', line 15 def transport @transport end |
#user ⇒ Object
Returns the value of attribute user.
12 13 14 |
# File 'lib/masstransit/config.rb', line 12 def user @user end |
#vdir ⇒ Object
Returns the value of attribute vdir.
11 12 13 |
# File 'lib/masstransit/config.rb', line 11 def vdir @vdir end |