Sha256: 7edc9faed58effcee08d823647d42700d664c13dcec00e7384a9f974e113da12
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
# coding: utf-8 # frozen_string_literal: true module MicroRb module Clients class Rpc include Base base_uri MicroRb::Configuration.instance.gateway_uri def self.call(service:, method:, params:, klass_response: nil) response = post(MicroRb::Configuration.instance.gateway_rpc, options(service: service, method: method, request: params)) return klass_response.new(response.to_h.symbolize_keys!) if klass_response response end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
micro-rb-0.1.0.rc2 | lib/micro/clients/rpc.rb |