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.



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 || ''
  @options              = Array.new
  if args.has_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.



51
52
53
# File 'lib/cb/models/implementations/talent_network.rb', line 51

def form_value
  @form_value
end

#option_display_typeObject

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

#optionsObject

Returns the value of attribute options.



51
52
53
# File 'lib/cb/models/implementations/talent_network.rb', line 51

def options
  @options
end

#orderObject

Returns the value of attribute order.



51
52
53
# File 'lib/cb/models/implementations/talent_network.rb', line 51

def order
  @order
end

#requiredObject

Returns the value of attribute required.



51
52
53
# File 'lib/cb/models/implementations/talent_network.rb', line 51

def required
  @required
end

#textObject

Returns the value of attribute text.



51
52
53
# File 'lib/cb/models/implementations/talent_network.rb', line 51

def text
  @text
end