Sprinkle frozen string literal & Indentation Fix (#150)
* Avoid extra string alocation as join will always return string * Fix indentation * Sprinkle frozen string literal true
This commit is contained in:
committed by
Sojan Jose
parent
59e9fbd336
commit
a1452d7d89
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Integrations::Facebook::DeliveryStatus
|
||||
|
||||
def initialize(params)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Integrations::Facebook::MessageCreator
|
||||
|
||||
attr_reader :response
|
||||
@@ -28,8 +30,8 @@ class Integrations::Facebook::MessageCreator
|
||||
|
||||
def create_outgoing_message
|
||||
FacebookPage.where(page_id: response.sender_id).each do |page|
|
||||
mb = Messages::Outgoing::EchoBuilder.new(response, page.inbox, true)
|
||||
mb.perform
|
||||
mb = Messages::Outgoing::EchoBuilder.new(response, page.inbox, true)
|
||||
mb.perform
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Integrations::Facebook::MessageParser
|
||||
|
||||
def initialize(response_json)
|
||||
|
||||
Reference in New Issue
Block a user