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

11 Zeilen
190 B
Ruby

2017-09-23 04:34:07 +02:00
class CustomWizard::Wizard
attr_reader :name, :steps
def initialize(data)
parsed = ::JSON.parse(data)
@name = parsed['name']
@steps = JSON.parse(parsed['steps'])
end
end