1
0
Fork 0
discourse-custom-wizard-unl.../lib/wizard.rb
2017-09-24 11:01:18 +08:00

11 Zeilen
201 B
Ruby

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