Class: MassTransit::Config

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfig


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

#insistObject

Returns the value of attribute insist


14
15
16
# File 'lib/masstransit/config.rb', line 14

def insist
  @insist
end

#passwordObject

Returns the value of attribute password


13
14
15
# File 'lib/masstransit/config.rb', line 13

def password
  @password
end

#portObject

Returns the value of attribute port


10
11
12
# File 'lib/masstransit/config.rb', line 10

def port
  @port
end

#queueObject

Returns the value of attribute queue


17
18
19
# File 'lib/masstransit/config.rb', line 17

def queue
  @queue
end

#serializerObject

Returns the value of attribute serializer


16
17
18
# File 'lib/masstransit/config.rb', line 16

def serializer
  @serializer
end

#serverObject

Returns the value of attribute server


9
10
11
# File 'lib/masstransit/config.rb', line 9

def server
  @server
end

#transportObject

Returns the value of attribute transport


15
16
17
# File 'lib/masstransit/config.rb', line 15

def transport
  @transport
end

#userObject

Returns the value of attribute user


12
13
14
# File 'lib/masstransit/config.rb', line 12

def user
  @user
end

#vdirObject

Returns the value of attribute vdir


11
12
13
# File 'lib/masstransit/config.rb', line 11

def vdir
  @vdir
end