Class: Cb::Models::TalentNetwork::Questions
- Inherits:
-
Object
- Object
- Cb::Models::TalentNetwork::Questions
- Defined in:
- lib/cb/models/implementations/talent_network.rb
Instance Attribute Summary collapse
-
#form_value ⇒ Object
Returns the value of attribute form_value.
-
#option_display_type ⇒ Object
Returns the value of attribute option_display_type.
-
#options ⇒ Object
Returns the value of attribute options.
-
#order ⇒ Object
Returns the value of attribute order.
-
#required ⇒ Object
Returns the value of attribute required.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Questions
constructor
A new instance of Questions.
Constructor Details
#initialize(args = {}) ⇒ Questions
Returns a new instance of Questions.
62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/cb/models/implementations/talent_network.rb', line 62 def initialize(args = {}) @text = args['Text'] || '' @form_value = args['FormValue'] || '' @option_display_type = args['OptionDisplayType'] || '' @order = args['Order'] || '' @required = args['Required'].to_s || '' @options = [] if args.key?('Options') args['Options'].each do |option_values| @options << TalentNetwork::Options.new(option_values) end end end |
Instance Attribute Details
#form_value ⇒ Object
Returns the value of attribute form_value.
60 61 62 |
# File 'lib/cb/models/implementations/talent_network.rb', line 60 def form_value @form_value end |
#option_display_type ⇒ Object
Returns the value of attribute option_display_type.
60 61 62 |
# File 'lib/cb/models/implementations/talent_network.rb', line 60 def option_display_type @option_display_type end |
#options ⇒ Object
Returns the value of attribute options.
60 61 62 |
# File 'lib/cb/models/implementations/talent_network.rb', line 60 def @options end |
#order ⇒ Object
Returns the value of attribute order.
60 61 62 |
# File 'lib/cb/models/implementations/talent_network.rb', line 60 def order @order end |
#required ⇒ Object
Returns the value of attribute required.
60 61 62 |
# File 'lib/cb/models/implementations/talent_network.rb', line 60 def required @required end |
#text ⇒ Object
Returns the value of attribute text.
60 61 62 |
# File 'lib/cb/models/implementations/talent_network.rb', line 60 def text @text end |