Class: SlackBot::Events::Schemas::SocketPayload

Inherits:
JsonSchematize::Generator
  • Object
show all
Defined in:
lib/slack_bot/events/schemas/socket_payload.rb

Instance Method Summary collapse

Instance Method Details

#tldrObject



28
29
30
31
32
# File 'lib/slack_bot/events/schemas/socket_payload.rb', line 28

def tldr
  retry_language = "#{retry_attempt}"
  retry_language += ":#{retry_reason}" if retry_attempt > 0
  "#{payload.event.tldr}; retry:#{retry_language}"
end

#typeObject



24
25
26
# File 'lib/slack_bot/events/schemas/socket_payload.rb', line 24

def type
  payload.event.type
end