Class: Roqua::RomApi::GetNonResponse

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

Class Method Summary collapse

Class Method Details

.run!(dossier_id: 'some_epd_id', non_response_id: 1) ⇒ Models::NonResponse

Retrieve specified non_response from specified dossier.

Parameters:

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

    epd_id of dossier (required)

  • non_response_id: (Integer) (defaults to: 1)

    (required)

Returns:

See Also:



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

class GetNonResponse < Endpoint
  string :dossier_id
  integer :non_response_id

  private

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

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