Class: Stealth::Services::BaseReplyHandler
- Inherits:
-
Object
- Object
- Stealth::Services::BaseReplyHandler
- Defined in:
- lib/stealth/services/base_reply_handler.rb
Instance Attribute Summary collapse
-
#recipient_id ⇒ Object
readonly
Returns the value of attribute recipient_id.
-
#reply ⇒ Object
readonly
Returns the value of attribute reply.
Instance Method Summary collapse
- #audio ⇒ Object
- #cards ⇒ Object
- #delay ⇒ Object
- #disable_typing_indicator ⇒ Object
- #enable_typing_indicator ⇒ Object
- #file ⇒ Object
- #image ⇒ Object
-
#initialize(recipient_id:, reply:) ⇒ BaseReplyHandler
constructor
A new instance of BaseReplyHandler.
- #list ⇒ Object
- #mark_seen ⇒ Object
- #receipt ⇒ Object
- #text ⇒ Object
- #video ⇒ Object
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 = end |
Instance Attribute Details
#recipient_id ⇒ Object (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 |
#reply ⇒ Object (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
#audio ⇒ Object
23 24 25 |
# File 'lib/stealth/services/base_reply_handler.rb', line 23 def audio reply_format_not_supported(format: 'audio') end |
#cards ⇒ Object
35 36 37 |
# File 'lib/stealth/services/base_reply_handler.rb', line 35 def cards reply_format_not_supported(format: 'cards') end |
#delay ⇒ Object
59 60 61 |
# File 'lib/stealth/services/base_reply_handler.rb', line 59 def delay reply_format_not_supported(format: 'delay') end |
#disable_typing_indicator ⇒ Object
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_indicator ⇒ Object
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 |
#file ⇒ Object
31 32 33 |
# File 'lib/stealth/services/base_reply_handler.rb', line 31 def file reply_format_not_supported(format: 'file') end |
#image ⇒ Object
19 20 21 |
# File 'lib/stealth/services/base_reply_handler.rb', line 19 def image reply_format_not_supported(format: 'image') end |
#list ⇒ Object
39 40 41 |
# File 'lib/stealth/services/base_reply_handler.rb', line 39 def list reply_format_not_supported(format: 'list') end |
#mark_seen ⇒ Object
47 48 49 |
# File 'lib/stealth/services/base_reply_handler.rb', line 47 def mark_seen reply_format_not_supported(format: 'mark_seen') end |
#receipt ⇒ Object
43 44 45 |
# File 'lib/stealth/services/base_reply_handler.rb', line 43 def receipt reply_format_not_supported(format: 'receipt') end |
#text ⇒ Object
15 16 17 |
# File 'lib/stealth/services/base_reply_handler.rb', line 15 def text reply_format_not_supported(format: 'text') end |
#video ⇒ Object
27 28 29 |
# File 'lib/stealth/services/base_reply_handler.rb', line 27 def video reply_format_not_supported(format: 'video') end |