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

break out tags to its own class #140

Closed
wants to merge 2 commits into from
Closed

Conversation

peetucket
Copy link
Member

@peetucket peetucket commented Aug 28, 2018

experiment in breaking out the goobi tag into a small class instead of using array of arrays to represent

@coveralls
Copy link

coveralls commented Aug 28, 2018

Coverage Status

Coverage increased (+0.006%) to 99.479% when pulling 8380e91 on tag-class into 88f3122 on send-tags-to-goobi.

def initialize(p_hash)
@name = p_hash[:name]
@value = p_hash[:value]
end
Copy link
Contributor

Choose a reason for hiding this comment

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

You could even add a to_xml method here which would return:

        "<tag name=\"#{name}\" value=\"#{value}\"></tag>"

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea, i'm going to push to this branch and then submit a new PR against master (since the goobi-tag work is now merged)

@jcoyne
Copy link
Contributor

jcoyne commented Aug 29, 2018

👏 I like this very much. Thank you.

jcoyne and others added 2 commits August 29, 2018 15:04
add <tags> to goobi notify call with object tags in specified format
@peetucket
Copy link
Member Author

closed in favor of #141

@peetucket peetucket closed this Aug 29, 2018
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.

None yet

3 participants