-
Notifications
You must be signed in to change notification settings - Fork 5
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
Data completeness subview class #15432
base: master
Are you sure you want to change the base?
Conversation
Yardoc is complaining about:
|
# The completeness of each type of member data as a percentage | ||
class DataCompleteness | ||
# @param [Array PersonCard] | ||
def initialize(people:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is receiving an array of PersonCard
, perhaps better to call this something like person_cards
. people
would imply to me that it's wanting Person
objects instead.
New name reflects that value is array of person cards.
New name reflects that completeness() is a query method
@ondenman You haven't fixed the problem yet that yardoc is complaining about at line 5 (i.e. you haven't documented what the variable is called — only its type) |
end | ||
|
||
CARDS = %i(social bio contacts identifiers).freeze | ||
Percentages = Struct.new(*CARDS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Percentages
class isn't documented…
Added class to provide data for data completeness subview:
Extracted from
TermTable#percentages