0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 23:31:11 +02:00
discourse-custom-wizard/lib/wizard.rb
Angus McLeod dd26ac63af various
2017-10-09 13:52:09 +08:00

14 Zeilen
372 B
Ruby

class CustomWizard::Wizard
attr_reader :id, :name, :steps, :background, :save_submissions, :custom
def initialize(data)
data = data.is_a?(String) ? ::JSON.parse(data) : data
@id = data['id']
@name = data['name']
@background = data['background']
@save_submissions = data['save_submissions']
@steps = data['steps']
@custom = true
end
end