diff --git a/lib/archetype.rb b/lib/archetype.rb index caa8cc95bbe..7213c8b26f0 100644 --- a/lib/archetype.rb +++ b/lib/archetype.rb @@ -9,22 +9,24 @@ class Archetype end def attributes - {'id' => @id, - 'options' => @options} + { + id: @id, + options: @options + } end def self.default 'regular' end - def self.poll - 'poll' - end - def self.private_message 'private_message' end + def self.banner + 'banner' + end + def self.list return [] unless @archetypes.present? @archetypes.values @@ -35,9 +37,9 @@ class Archetype @archetypes[name] = Archetype.new(name, options) end - - # By default we have a regular archetype and a private message + # default archetypes register 'regular' register 'private_message' + register 'banner' end