Class: Miteru::Notifiers::SlackAttachment
- Inherits:
-
Object
- Object
- Miteru::Notifiers::SlackAttachment
- Defined in:
- lib/miteru/notifiers/slack.rb
Instance Attribute Summary collapse
- #url ⇒ String readonly
Instance Method Summary collapse
-
#initialize(url) ⇒ SlackAttachment
constructor
A new instance of SlackAttachment.
- #to_a ⇒ Object
Constructor Details
#initialize(url) ⇒ SlackAttachment
Returns a new instance of SlackAttachment.
11 12 13 |
# File 'lib/miteru/notifiers/slack.rb', line 11 def initialize(url) @url = url end |
Instance Attribute Details
#url ⇒ String (readonly)
9 10 11 |
# File 'lib/miteru/notifiers/slack.rb', line 9 def url @url end |
Instance Method Details
#to_a ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/miteru/notifiers/slack.rb', line 15 def to_a [ { text:, fallback: "VT & urlscan.io links", actions: } ] end |