module Loquor class HttpAction::Get < HttpAction def self.get(url, deps) new(url, deps).get end def initialize(url, deps) super end def get @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 RestClient::Request.new(url: full_url, method: :get) end def full_url "#{@config.endpoint}#{@url}" end end end