Class: Spear::Structure::Application::EmbededClass::Question
- Inherits:
-
Object
- Object
- Spear::Structure::Application::EmbededClass::Question
- Defined in:
- lib/spear/structure/application/embeded_class.rb
Overview
Resume embeded class
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#required ⇒ Object
Returns the value of attribute required.
-
#text ⇒ Object
Returns the value of attribute text.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id, type, required, text) ⇒ Question
constructor
A new instance of Question.
Constructor Details
#initialize(id, type, required, text) ⇒ Question
Returns a new instance of Question.
11 12 13 14 15 16 |
# File 'lib/spear/structure/application/embeded_class.rb', line 11 def initialize(id, type, required, text) @id = id @type = type @required = 'true'.eql?(required) @text = text end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/spear/structure/application/embeded_class.rb', line 9 def id @id end |
#required ⇒ Object
Returns the value of attribute required.
9 10 11 |
# File 'lib/spear/structure/application/embeded_class.rb', line 9 def required @required end |
#text ⇒ Object
Returns the value of attribute text.
9 10 11 |
# File 'lib/spear/structure/application/embeded_class.rb', line 9 def text @text end |
#type ⇒ Object
Returns the value of attribute type.
9 10 11 |
# File 'lib/spear/structure/application/embeded_class.rb', line 9 def type @type end |