Class: SlackService::BaseMessage

Inherits:
Object
  • Object
show all
Defined in:
app/models/project_services/slack_service/base_message.rb

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ BaseMessage

Returns a new instance of BaseMessage

Raises:

  • (NotImplementedError)

5
6
7
# File 'app/models/project_services/slack_service/base_message.rb', line 5

def initialize(params)
  raise NotImplementedError
end

Instance Method Details

#attachmentsObject

Raises:

  • (NotImplementedError)

16
17
18
# File 'app/models/project_services/slack_service/base_message.rb', line 16

def attachments
  raise NotImplementedError
end

#fallbackObject


13
14
# File 'app/models/project_services/slack_service/base_message.rb', line 13

def fallback
end

#pretextObject


9
10
11
# File 'app/models/project_services/slack_service/base_message.rb', line 9

def pretext
  format(message)
end