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

Decouple ResourceFile from Resource #1771

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Decouple ResourceFile from Resource #1771

merged 1 commit into from
Nov 17, 2023

Conversation

jcoyne
Copy link
Contributor

@jcoyne jcoyne commented Nov 17, 2023

This will allow us to decouple the file from the resource

@jcoyne jcoyne force-pushed the pass-druid branch 2 times, most recently from b88bd86 to 02224aa Compare November 17, 2023 17:58
@jcoyne jcoyne changed the title Pass the druid and description to the file Decouple ResourceFile from Resource Nov 17, 2023
@jcoyne jcoyne marked this pull request as ready for review November 17, 2023 17:59
ResourceFile no longer needs to know about the internals of Resource
@@ -3,21 +3,22 @@
module Embed
class Purl
class ResourceFile
# @param [Embed::Purl::Resource] resource
# @param [String] druid the identifier of the resource this file belongs to.
# @param [String] description the label for this file
Copy link
Member

Choose a reason for hiding this comment

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

Should we consider calling this label?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll get to that in the next PR.

@jcoyne jcoyne merged commit bfcd303 into main Nov 17, 2023
@jcoyne jcoyne deleted the pass-druid branch November 17, 2023 19:15
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