5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 07:56:23 +00:00
panel/app/models/metadata_factory.rb

9 lines
185 B
Ruby
Raw Permalink Normal View History

2019-08-06 17:54:17 +00:00
# frozen_string_literal: true
# Devuelve metadatos de cierto tipo
class MetadataFactory
def self.build(**args)
"Metadata#{args[:type].camelcase}".constantize.new(args)
end
end