add banner archetype

This commit is contained in:
Régis Hanol 2014-06-16 16:17:27 +02:00
parent 4c237f5bf5
commit 3153a84da2

View File

@ -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