Class: Barbeque::Message::Notification
- Defined in:
- lib/barbeque/message/notification.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
readonly
- String
-
To specify ‘job_definitions.app.name`.
-
#body ⇒ Object
readonly
- Object
-
free-format JSON.
-
#job ⇒ Object
readonly
- String
-
To specify ‘job_definitions.job`.
-
#topic_arn ⇒ Object
readonly
- String
-
To specify ‘subscription.topic_arn`.
Attributes inherited from Base
#id, #receipt_handle, #sent_timestamp, #type
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Barbeque::Message::Base
Instance Attribute Details
#application ⇒ Object (readonly)
- String
-
To specify ‘job_definitions.app.name`
8 9 10 |
# File 'lib/barbeque/message/notification.rb', line 8 def application @application end |
#body ⇒ Object (readonly)
- Object
-
free-format JSON
6 7 8 |
# File 'lib/barbeque/message/notification.rb', line 6 def body @body end |
#job ⇒ Object (readonly)
- String
-
To specify ‘job_definitions.job`
9 10 11 |
# File 'lib/barbeque/message/notification.rb', line 9 def job @job end |
#topic_arn ⇒ Object (readonly)
- String
-
To specify ‘subscription.topic_arn`
7 8 9 |
# File 'lib/barbeque/message/notification.rb', line 7 def topic_arn @topic_arn end |
Instance Method Details
#set_params_from_subscription(subscription) ⇒ Barbeque::Message::Notification
13 14 15 16 17 |
# File 'lib/barbeque/message/notification.rb', line 13 def set_params_from_subscription(subscription) @application = subscription.app.name @job = subscription.job_definition.job self end |