Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
12 Zeilen
254 B
Ruby
12 Zeilen
254 B
Ruby
class CustomWizard::Wizard
|
|
|
|
attr_reader :id, :name, :steps, :custom
|
|
|
|
def initialize(data)
|
|
data = data.is_a?(String) ? ::JSON.parse(data) : data
|
|
@id = data['id']
|
|
@name = data['name']
|
|
@steps = data['steps']
|
|
@custom = true
|
|
end
|
|
end
|