Class: Stealth::Services::BaseReplyHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/stealth/services/base_reply_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(recipient_id:, reply:) ⇒ BaseReplyHandler

Returns a new instance of BaseReplyHandler.



10
11
12
13
# File 'lib/stealth/services/base_reply_handler.rb', line 10

def initialize(recipient_id:, reply:)
  @client = client
  @options = options
end

Instance Attribute Details

#recipient_idObject (readonly)

Returns the value of attribute recipient_id.



8
9
10
# File 'lib/stealth/services/base_reply_handler.rb', line 8

def recipient_id
  @recipient_id
end

#replyObject (readonly)

Returns the value of attribute reply.



8
9
10
# File 'lib/stealth/services/base_reply_handler.rb', line 8

def reply
  @reply
end

Instance Method Details

#audioObject



23
24
25
# File 'lib/stealth/services/base_reply_handler.rb', line 23

def audio
  reply_format_not_supported(format: 'audio')
end

#cardsObject



35
36
37
# File 'lib/stealth/services/base_reply_handler.rb', line 35

def cards
  reply_format_not_supported(format: 'cards')
end

#delayObject



59
60
61
# File 'lib/stealth/services/base_reply_handler.rb', line 59

def delay
  reply_format_not_supported(format: 'delay')
end

#disable_typing_indicatorObject



55
56
57
# File 'lib/stealth/services/base_reply_handler.rb', line 55

def disable_typing_indicator
  reply_format_not_supported(format: 'disable_typing_indicator')
end

#enable_typing_indicatorObject



51
52
53
# File 'lib/stealth/services/base_reply_handler.rb', line 51

def enable_typing_indicator
  reply_format_not_supported(format: 'enable_typing_indicator')
end

#fileObject



31
32
33
# File 'lib/stealth/services/base_reply_handler.rb', line 31

def file
  reply_format_not_supported(format: 'file')
end

#imageObject



19
20
21
# File 'lib/stealth/services/base_reply_handler.rb', line 19

def image
  reply_format_not_supported(format: 'image')
end

#listObject



39
40
41
# File 'lib/stealth/services/base_reply_handler.rb', line 39

def list
  reply_format_not_supported(format: 'list')
end

#mark_seenObject



47
48
49
# File 'lib/stealth/services/base_reply_handler.rb', line 47

def mark_seen
  reply_format_not_supported(format: 'mark_seen')
end

#receiptObject



43
44
45
# File 'lib/stealth/services/base_reply_handler.rb', line 43

def receipt
  reply_format_not_supported(format: 'receipt')
end

#textObject



15
16
17
# File 'lib/stealth/services/base_reply_handler.rb', line 15

def text
  reply_format_not_supported(format: 'text')
end

#videoObject



27
28
29
# File 'lib/stealth/services/base_reply_handler.rb', line 27

def video
  reply_format_not_supported(format: 'video')
end