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
1. Add a script named rubocop to the local root project: | |
``` | |
#!/bin/sh | |
docker-compose exec -T docker_service_name bundle exec rubocop -c .rubocop.yml "$@" | |
``` | |
2. In VsCode settings add the following: | |
``` | |
"[ruby]": { | |
"editor.defaultFormatter": "rubocop.vscode-rubocop" |
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
require "csv" | |
class TwilioCallExporter | |
DATE_FORMAT = "%Y-%m-%d %H:%M UTC" | |
attr_reader :to_phone_number, :start_date | |
def initialize(to_phone_number:, start_date:) | |
@to_phone_number = to_phone_number | |
@start_date = start_date | |
end |