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