Class: SlackBot::Events::Schemas::SocketPayload
- Inherits:
-
JsonSchematize::Generator
- Object
- JsonSchematize::Generator
- SlackBot::Events::Schemas::SocketPayload
- Defined in:
- lib/slack_bot/events/schemas/socket_payload.rb
Instance Method Summary collapse
Instance Method Details
#tldr ⇒ Object
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 |
#type ⇒ Object
24 25 26 |
# File 'lib/slack_bot/events/schemas/socket_payload.rb', line 24 def type payload.event.type end |