Class: Spear::Structure::Application::EmbededClass::Question

Inherits:
Object
  • Object
show all
Defined in:
lib/spear/structure/application/embeded_class.rb

Overview

Resume embeded class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/spear/structure/application/embeded_class.rb', line 9

def id
  @id
end

#requiredObject

Returns the value of attribute required.



9
10
11
# File 'lib/spear/structure/application/embeded_class.rb', line 9

def required
  @required
end

#textObject

Returns the value of attribute text.



9
10
11
# File 'lib/spear/structure/application/embeded_class.rb', line 9

def text
  @text
end

#typeObject

Returns the value of attribute type.



9
10
11
# File 'lib/spear/structure/application/embeded_class.rb', line 9

def type
  @type
end