Method: TridentAssistant::Utils.parse_metadata
- Defined in:
- lib/trident_assistant/utils.rb
.parse_metadata(input) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/trident_assistant/utils.rb', line 63 def (input) = case input when String TridentAssistant::Utils.parse_json input when Hash input else {} end TridentAssistant::Utils::Metadata.new( creator: ["creator"], collection: ["collection"], token: ["token"], checksum: ["checksum"] ) end |