Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beverly Green - the_dmv #598

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Conversation

bevgreen
Copy link

No description provided.

@@ -0,0 +1,19 @@
class DMVFacilities

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might make more sense to call this class DMVFactory to match the Vehicle Factory naming convention

@permit = true
end

def change_license_data(key)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this helper method! Just make sure that you are writing tests for any methods that you add 😉

def register_vehicle(vehicle)

if @services.include?('Vehicle Registration')
@registered_vehicles << vehicle

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When a vehicle is registered, you probably also want to call the registration method on the vehicle so that the plate type is set and the registration date is updated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants