Class: Roqua::CoreApi::Dossiers Private

Inherits:
Base
  • Object
show all
Defined in:
lib/roqua/core_api/dossiers.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.

usage: Roqua.CoreApi.Dossiers.run!.each do |d|

puts d.id, d.birth_year, d.gender, d.firstname, d.lastname

end



16
17
18
19
# File 'lib/roqua/core_api/dossiers.rb', line 16

def execute
  response = session.get "#{url_prefix}/dossiers", params
  create_enum(response['headers'], response['rows'])
end

#paramsObject

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.



25
26
27
28
29
# File 'lib/roqua/core_api/dossiers.rb', line 25

def params
  {name: with_name,
   external_identifier: with_external_identifier
  }.delete_if { |k, v| v.nil? }
end

#url_prefixObject

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.



21
22
23
# File 'lib/roqua/core_api/dossiers.rb', line 21

def url_prefix
  dossier_group_id.present? ? "/dossier_groups/#{dossier_group_id}" : ''
end