Class: Roqua::RomApi::GetQuestionnaire Private

Inherits:
Endpoint
  • Object
show all
Defined in:
lib/roqua/rom_api/get_questionnaire.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#executeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
11
12
# File 'lib/roqua/rom_api/get_questionnaire.rb', line 8

def execute
  validate_response_for do
    basic_auth_session.get "/questionnaires/#{questionnaire_key}", use_legacy_keys: use_legacy_keys
  end
end

#response_to_result(response) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
# File 'lib/roqua/rom_api/get_questionnaire.rb', line 14

def response_to_result(response)
  Models::Questionnaire.new(response)
end