Class: Miteru::Notifiers::SlackAttachment

Inherits:
Object
  • Object
show all
Defined in:
lib/miteru/notifiers/slack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#urlString (readonly)

Returns:

  • (String)


9
10
11
# File 'lib/miteru/notifiers/slack.rb', line 9

def url
  @url
end

Instance Method Details

#to_aObject



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