Class: Propono::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/propono/configuration.rb

Constant Summary collapse

SETTINGS =
[
  :use_iam_profile, :access_key, :secret_key, :queue_region, :queue_suffix,
  :application_name,
  :udp_host, :udp_port,
  :tcp_host, :tcp_port,
  :logger,
  :max_retries, :num_messages_per_poll
]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



18
19
20
21
22
23
24
# File 'lib/propono/configuration.rb', line 18

def initialize
  self.logger = Propono::Logger.new
  self.queue_suffix = ""
  self.use_iam_profile = false
  self.max_retries = 0
  self.num_messages_per_poll = 10
end

Instance Attribute Details

#queue_suffixObject (readonly)

Returns the value of attribute queue_suffix.



32
33
34
# File 'lib/propono/configuration.rb', line 32

def queue_suffix
  @queue_suffix
end

#use_iam_profileObject (readonly)

Returns the value of attribute use_iam_profile.



32
33
34
# File 'lib/propono/configuration.rb', line 32

def use_iam_profile
  @use_iam_profile
end