Skip to content
This repository has been archived by the owner on Mar 23, 2018. It is now read-only.

change Ichabod::ResourceSet::Resource#to_s to print attribute and value #93

Open
jgpawletko opened this issue Oct 27, 2014 · 0 comments
Labels

Comments

@jgpawletko
Copy link
Member

Current Ichabod::ResourceSet::Resource#to_s implementation does not prefix values with the attribute name when value is not an array. e.g.,

       NYUCORE_ATTRIBUTES.map do |attribute|
          value = send(attribute)
          if value.present?
            if value.is_a? Array
              "#{attribute}: #{value.join('; ')}"
            else
              value  # <=== propose changing this line to ""#{attribute}: #{value}"
            end
          end
        end.compact.join("\n") + "\n"

Comments welcome...

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

No branches or pull requests

1 participant