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

Maia Bard #630

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

Maia Bard #630

wants to merge 31 commits into from

Conversation

MaiaKBard
Copy link

No description provided.

… added to a facility' and code/test for register_vehicle(vehicle)
…s and add a attr_accessor to registrant.rb file
Copy link

@mikedao mikedao left a comment

Choose a reason for hiding this comment

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

Overall well done. Code is clean. Like I said earlier, think about how you can separate out your code so that you're not relying on attr_accessors.

Copy link

Choose a reason for hiding this comment

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

This is good, though for attributes I might have tested more than one example.

Copy link

Choose a reason for hiding this comment

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

Instead of making license data accessbile, I'd have made a method to change the data. It's dangerous to have things as accessors. I would have a method like this:

def take_written_test
  @license_data[:written] = true
end

and call this method from the method in the facility class.

Copy link

Choose a reason for hiding this comment

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

Lambdas - FANCY!

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