lib/loquor/http_actions/get.rb in loquor-0.1.1 vs lib/loquor/http_actions/get.rb in loquor-0.1.2
- old
+ new
@@ -7,18 +7,21 @@
def initialize(url, deps)
super
end
def get
- @config.logger.info "Making GET request to: #{@url}"
+ @config.logger.info "Making GET request to: #{full_url}"
response = JSON.parse(signed_request.execute)
@config.logger.info "Signed request executed. Response: #{response}"
response
end
private
def request
- full_url = "#{@config.endpoint}#{@url}"
RestClient::Request.new(url: full_url, method: :get)
+ end
+
+ def full_url
+ "#{@config.endpoint}#{@url}"
end
end
end