Class: Puree::Map
- Inherits:
-
Object
- Object
- Puree::Map
- Defined in:
- lib/puree/map.rb
Instance Method Summary collapse
-
#get ⇒ Hash
Pure API map.
-
#initialize ⇒ Map
constructor
A new instance of Map.
Constructor Details
#initialize ⇒ Map
Returns a new instance of Map.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/puree/map.rb', line 5 def initialize @convention = %w( journal organisation person project publication publisher ) @api_map = { resource_type: { dataset: { service: 'datasets', response: 'GetDataSetsResponse' } } } add_convention end |
Instance Method Details
#get ⇒ Hash
Pure API map
30 31 32 |
# File 'lib/puree/map.rb', line 30 def get @api_map end |