0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00
discourse-custom-wizard/lib/wizard.rb

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