Class: Roqua::RomApi::ListNonResponses

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

Class Method Summary collapse

Class Method Details

.run!(dossier_id: 'some_epd_id') ⇒ Array<Models::NonResponse>

Retrieve all non_responses belonging to specified dossier.

Parameters:

  • dossier_id: (String) (defaults to: 'some_epd_id')

    epd_id of dossier (required)

Returns:

See Also:



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/roqua/rom_api/list_non_responses.rb', line 9

class ListNonResponses < Endpoint
  string :dossier_id

  private

  def execute
    validate_response_for do
      basic_auth_session.get "/dossiers/#{dossier_id}/non_responses"
    end
  end

  def response_to_result(response)
    response.map { |r| Models::NonResponse.new(r) }
  end
end