This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BillingService | |
def self.process(order, shipping_details={}) | |
Rails.logger.info "Processing order #{order.id} with details: #{shipping_details}..." | |
sleep(3) | |
Rails.logger.info "Order #{order.id} processed successfully." | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BillingService | |
def self.process(order, shipping_details) | |
Rails.logger.info "Processing order #{order.id} with details: #{shipping_details}..." | |
sleep(3) | |
Rails.logger.info "Order #{order.id} processed successfully." | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BillingService | |
def self.process(order) | |
Rails.logger.info "Processing order #{order.id}..." | |
sleep(3) | |
Rails.logger.info "Order #{order.id} processed successfully." | |
end | |
end |