discourse/lib/wizard/field.rb

16 lines
285 B
Ruby
Raw Normal View History

2016-08-25 13:14:56 -04:00
class Wizard
class Field
attr_reader :id, :type, :required, :value
attr_accessor :step
def initialize(attrs)
attrs = attrs || {}
@id = attrs[:id]
@type = attrs[:type]
@required = !!attrs[:required]
@value = attrs[:value]
end
end
end