Class: Spear::Structure::TalentNetwork::JoinFormQuestion

Inherits:
Base
  • Object
show all
Includes:
EmbededClass
Defined in:
lib/spear/structure/talent_network/join_form_question.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#error_message, #response, #root, #status

Instance Method Summary collapse

Methods included from EmbededClass

#generate_questions

Methods inherited from Base

#success?

Constructor Details

#initialize(response) ⇒ JoinFormQuestion

Returns a new instance of JoinFormQuestion.



9
10
11
12
13
# File 'lib/spear/structure/talent_network/join_form_question.rb', line 9

def initialize(response)
  super(response)

  @join_questions = generate_questions(@root["JoinQuestions"]) rescue nil
end

Instance Attribute Details

#join_questionsObject

Returns the value of attribute join_questions.



7
8
9
# File 'lib/spear/structure/talent_network/join_form_question.rb', line 7

def join_questions
  @join_questions
end