Sha256: e3c2725583cf7b74dd4785a8fc1e70b085720f5b1c4af17df3721df1592bf075

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

module Loquor
  class HttpAction::Get < HttpAction
    def self.get(url, deps)
      new(url, deps).get
    end

    def initialize(url, deps)
      super
    end

    def get
      JSON.parse(signed_request.execute)
    end

    private
    def request
      full_url = "#{@config.endpoint}#{@url}"
      RestClient::Request.new(url: full_url, method: :get)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
loquor-0.0.1 lib/loquor/http_actions/get.rb