Class: Regio::Gazetteer
Constant Summary
Constants inherited from Core
Instance Attribute Summary
Attributes inherited from Core
Instance Method Summary collapse
Methods inherited from Core
Constructor Details
This class inherits a constructor from Regio::Core
Instance Method Details
#results ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/regio/gazetteer.rb', line 5 def results raise Unprocessable, response[:message] if response[:message] response.merge( collection: response[:data]&.map { |result| transform(result) } || [] ) end |