Sha256: a8e96b92862cf09548a04af0447052bf123ced23ef7e295a842cb8b9371d8923

Contents?: true

Size: 500 Bytes

Versions: 12

Compression:

Stored size: 500 Bytes

Contents

module Loquor
  class Client
    attr_reader :config

    def initialize
      @config = Configuration.new
    end

    def get(url, cache=nil)
      deps = {config: @config}
      deps[:should_cache] = cache if cache
      HttpAction::Get.get(url, deps)
    end

    def put(url, payload)
      deps = {config: @config}
      HttpAction::Put.put(url, payload, deps)
    end

    def post(url, payload)
      deps = {config: @config}
      HttpAction::Post.post(url, payload, deps)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
loquor-1.4.0 lib/loquor/client.rb
loquor-1.3.0 lib/loquor/client.rb
loquor-1.2.1 lib/loquor/client.rb
loquor-1.2.0 lib/loquor/client.rb
loquor-1.1.1 lib/loquor/client.rb
loquor-1.1.0 lib/loquor/client.rb
loquor-1.0.0 lib/loquor/client.rb
loquor-0.9.0 lib/loquor/client.rb
loquor-0.8.0 lib/loquor/client.rb
loquor-0.7.0 lib/loquor/client.rb
loquor-0.6.0 lib/loquor/client.rb
loquor-0.5.4 lib/loquor/client.rb