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.



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

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



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

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