Sha256: a9492f480ca8b24ef031896c166af674c2496c2fceb5bc735fad65a0dbd00e63
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
module Loquor class Client attr_reader :config def initialize @config = Configuration.new end def get(url, options = {}) deps = {config: @config} deps[:should_cache] = options[:cache] if options[: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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loquor-1.5.0 | lib/loquor/client.rb |