5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 16:56:21 +00:00
panel/app/models/metadata_factory.rb
2019-08-06 19:56:21 -03:00

8 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