This file contains hidden or 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
# frozen_string_literal: true | |
# Runs with | |
# ruby 3.3 | |
# webmock 3.23 | |
# minitest 5.24.1 | |
require 'uri' | |
require 'net/http' | |
require 'json' | |
require 'webmock/minitest' |
This file contains hidden or 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 Driver | |
attr_reader :name | |
def initialize(name) | |
@name = name | |
end | |
end | |
class Car | |
def initialize(model:, driver:) |
OlderNewer