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.
53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/cb/models/implementations/talent_network.rb', line 53 def initialize(args={}) @text = args['Text'] || '' @form_value = args['FormValue'] || '' @option_display_type = args['OptionDisplayType'] || '' @order = args['Order'] || '' @required = args['Required'].to_s || '' = Array.new if args.has_key?('Options') args['Options'].each do |option_values| << TalentNetwork::Options.new(option_values) end end end |
Instance Attribute Details
#form_value ⇒ Object
Returns the value of attribute form_value.
51 52 53 |
# File 'lib/cb/models/implementations/talent_network.rb', line 51 def form_value @form_value end |
#option_display_type ⇒ Object
Returns the value of attribute option_display_type.
51 52 53 |
# File 'lib/cb/models/implementations/talent_network.rb', line 51 def option_display_type @option_display_type end |
#options ⇒ Object
Returns the value of attribute options.
51 52 53 |
# File 'lib/cb/models/implementations/talent_network.rb', line 51 def end |
#order ⇒ Object
Returns the value of attribute order.
51 52 53 |
# File 'lib/cb/models/implementations/talent_network.rb', line 51 def order @order end |
#required ⇒ Object
Returns the value of attribute required.
51 52 53 |
# File 'lib/cb/models/implementations/talent_network.rb', line 51 def required @required end |
#text ⇒ Object
Returns the value of attribute text.
51 52 53 |
# File 'lib/cb/models/implementations/talent_network.rb', line 51 def text @text end |