mirror of
https://0xacab.org/sutty/sutty
synced 2024-07-03 13:36:07 +00:00
9 lines
185 B
Ruby
9 lines
185 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Devuelve metadatos de cierto tipo
|
|
class MetadataFactory
|
|
def self.build(**args)
|
|
"Metadata#{args[:type].camelcase}".constantize.new(args)
|
|
end
|
|
end
|