Class: Economic::SelfRepo
- Defined in:
- lib/economic/self_repo.rb
Constant Summary
Constants inherited from BaseRepo
Class Method Summary collapse
Methods inherited from BaseRepo
all, destroy, endpoint_url, filter, find, id_to_url_formatted_id, save, send, send_request, updated_after
Class Method Details
.self ⇒ Object
6 7 8 9 10 |
# File 'lib/economic/self_repo.rb', line 6 def self response = send_request(method: :get, url: URI.escape(Economic::SelfRepo.endpoint_url)) entry_hash = JSON.parse(response.body) model.new(entry_hash) end |