mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
16 lines
285 B
Ruby
16 lines
285 B
Ruby
|
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
|