lib/economic/self_repo.rb in economic-rest-0.5.14 vs lib/economic/self_repo.rb in economic-rest-0.6.0
- old
+ new
@@ -2,10 +2,10 @@
class SelfRepo < Economic::BaseRepo
self.endpoint = "self"
class << self
def self
- response = send_request(method: :get, url: URI.escape(Economic::SelfRepo.endpoint_url))
+ response = send_request(method: :get, url: Economic::SelfRepo.endpoint_url)
entry_hash = JSON.parse(response.body)
model.new(entry_hash)
end
end
end