Sha256: 32707240db7cf0ea7bee6326da505d557c96ddf9c6a8710ea42fa5258c8e97e9
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
# coding: utf-8 # frozen_string_literal: true module MicroRb module Clients class Http include Base def self.call(uri:, service:, method:, params:, klass_response: nil) response = decode(post(uri, options(service: service, method: method, params: Array.wrap(params)))) return klass_response.new(response.to_h.symbolize_keys!) if klass_response response end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
micro-rb-0.1.0.rc3 | lib/micro/clients/http.rb |
micro-rb-0.1.0.rc2 | lib/micro/clients/http.rb |