Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-12 21:22:54 +01:00
11 Zeilen
190 B
Ruby
11 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
|