Class: FlowChat::Messenger::Gateway::SendApi

Inherits:
FlowChat::Meta::MessagingGateway show all
Defined in:
lib/flow_chat/messenger/gateway/send_api.rb

Overview

Facebook Messenger, on the shared Messenger Platform envelope.

Constant Summary

Constants included from Instrumentation

Instrumentation::DELIVERED_MESSAGE_ID_KEY, Instrumentation::DELIVERY_DURATION_KEY

Instance Attribute Summary

Attributes inherited from FlowChat::Meta::MessagingGateway

#client, #context

Attributes included from GatewayAsyncSupport

#context, #controller

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FlowChat::Meta::MessagingGateway

#call, configure_middleware_stack, #expected_webhook_object, #initialize

Methods included from FlowChat::Meta::GatewayIdentity

#log_tag

Methods included from GatewayAsyncSupport

#async_supported?, #enqueue_async_job, #extract_body_for_background, #extract_headers_for_background, #extract_host, #extract_path, #extract_remote_ip, #in_background?, #should_enqueue_async?, #side_events_already_published?

Methods included from Instrumentation

#elapsed_ms_since, #inbound_message?, #instrument, instrument, #platform_message_id_from, report_api_error, #report_delivery_failure, #report_delivery_success, #report_to_app, #report_to_subscribers

Constructor Details

This class inherits a constructor from FlowChat::Meta::MessagingGateway

Class Method Details

.choice_mapper_classObject



26
27
28
# File 'lib/flow_chat/messenger/gateway/send_api.rb', line 26

def self.choice_mapper_class
  FlowChat::Messenger::Middleware::ChoiceMapper
end

Instance Method Details

#client_classObject



18
19
20
# File 'lib/flow_chat/messenger/gateway/send_api.rb', line 18

def client_class
  FlowChat::Messenger::Client
end

#configuration_classObject



14
15
16
# File 'lib/flow_chat/messenger/gateway/send_api.rb', line 14

def configuration_class
  FlowChat::Messenger::Configuration
end

#gateway_nameObject



10
11
12
# File 'lib/flow_chat/messenger/gateway/send_api.rb', line 10

def gateway_name
  :messenger_send_api
end

#platformObject



6
7
8
# File 'lib/flow_chat/messenger/gateway/send_api.rb', line 6

def platform
  :messenger
end

#renderer_classObject



22
23
24
# File 'lib/flow_chat/messenger/gateway/send_api.rb', line 22

def renderer_class
  FlowChat::Messenger::Renderer
end