Method: Puree::API::Map#initialize
- Defined in:
- lib/puree/api/map.rb
#initialize ⇒ Map
Returns a new instance of Map.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/puree/api/map.rb', line 9 def initialize @convention = %w( event journal organisation person project publication publisher ) @api_map = { resource_type: { dataset: { service: 'datasets', response: 'GetDataSetsResponse', family: 'dk.atira.pure.modules.datasets.external.model.dataset.DataSet' }, download: { service: 'downloadcount', response: 'GetDownloadCountResponse' }, server: { service: 'servermeta', response: 'GetServerMetaResponse' }, external_organisation: { service: 'externalOrganisation', response: 'GetExternalOrganisationResponse' } } } add_convention # add_family end |