Class: Spear::Structure::TalentNetwork::EmbededClass::JoinQuestion

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

Overview

Resume embeded class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(question) ⇒ JoinQuestion

Returns a new instance of JoinQuestion.



11
12
13
14
15
16
17
18
# File 'lib/spear/structure/talent_network/embeded_class.rb', line 11

def initialize(question)
  @text = question['Text']
  @required = question['Required']
  @form_value = question['FormValue']
  @option_display_type = question['OptionDisplayType']
  @order = question['Order']
  @options = question['Options']
end

Instance Attribute Details

#form_valueObject

Returns the value of attribute form_value.



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

def form_value
  @form_value
end

#option_display_typeObject

Returns the value of attribute option_display_type.



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

def option_display_type
  @option_display_type
end

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

#orderObject

Returns the value of attribute order.



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

def order
  @order
end

#requiredObject

Returns the value of attribute required.



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

def required
  @required
end

#textObject

Returns the value of attribute text.



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

def text
  @text
end