add banner archetype
This commit is contained in:
parent
4c237f5bf5
commit
3153a84da2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue