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
2017-09-23 10:34:07 +08:00

10 Zeilen
190 B
Ruby

class CustomWizard::Wizard
attr_reader :name, :steps
def initialize(data)
parsed = ::JSON.parse(data)
@name = parsed['name']
@steps = JSON.parse(parsed['steps'])
end
end