Class: ActionSlack::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/action_slack/base.rb

Class Method Summary collapse

Class Method Details

.attributes=(attrs) ⇒ Object



18
19
20
# File 'lib/action_slack/base.rb', line 18

def attributes=(attrs)
  @attributes = Array.wrap(attrs)
end

.notify(**kargs) ⇒ Object



12
13
14
15
16
# File 'lib/action_slack/base.rb', line 12

def notify(**kargs)
  instance = create(**kargs)

  Notifier.notify(url: instance.url, message: instance.message)
end