Class: Cb::Models::TalentNetwork::Questions

Inherits:
Object
  • Object
show all
Defined in:
lib/cb/models/implementations/talent_network.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_valueObject

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_typeObject

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

#optionsObject

Returns the value of attribute options.



60
61
62
# File 'lib/cb/models/implementations/talent_network.rb', line 60

def options
  @options
end

#orderObject

Returns the value of attribute order.



60
61
62
# File 'lib/cb/models/implementations/talent_network.rb', line 60

def order
  @order
end

#requiredObject

Returns the value of attribute required.



60
61
62
# File 'lib/cb/models/implementations/talent_network.rb', line 60

def required
  @required
end

#textObject

Returns the value of attribute text.



60
61
62
# File 'lib/cb/models/implementations/talent_network.rb', line 60

def text
  @text
end