Class: Miteru::Attachement

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Attachement

Returns a new instance of Attachement.



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

def initialize(url)
  @url = url
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



7
8
9
# File 'lib/miteru/attachement.rb', line 7

def url
  @url
end

Instance Method Details

#to_aObject



13
14
15
16
17
18
19
20
21
# File 'lib/miteru/attachement.rb', line 13

def to_a
  [
    {
      text: defanged_url,
      fallback: "VT & urlscan.io links",
      actions: actions
    }
  ]
end