Class: Eventboss::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/eventboss/topic.rb

Class Method Summary collapse

Class Method Details

.build_arn(event_name:, source_app: nil) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/eventboss/topic.rb', line 6

def build_arn(event_name:, source_app: nil)
  [
    'arn:aws:sns',
    Eventboss.configuration.eventboss_region,
    Eventboss.configuration.,
    build_name(
      event_name: event_name,
      source_app: source_app
    )
  ].join(':')
end

.build_name(event_name:, source_app: nil) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/eventboss/topic.rb', line 18

def build_name(event_name:, source_app: nil)
  [
    Eventboss.configuration.sns_sqs_name_infix,
    source_app,
    event_name,
    Eventboss.env
  ].compact.join('-')
end