Class: Miteru::Attachement
- Inherits:
-
Object
- Object
- Miteru::Attachement
- Defined in:
- lib/miteru/attachement.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ Attachement
constructor
A new instance of Attachement.
- #to_a ⇒ Object
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
#url ⇒ Object (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_a ⇒ Object
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 |