Sha256: 8fb56b03a965c6717bc4501b7a2211a7ffde7de592214fae1227f8a802ecec0a
Contents?: true
Size: 462 Bytes
Versions: 2
Compression:
Stored size: 462 Bytes
Contents
# coding: utf-8 # frozen_string_literal: true require 'httparty' module MicroRb module Clients module Base extend ActiveSupport::Concern CONTENT_TYPE = 'application/json' included do include HTTParty def self.options(body) { body: body.to_json, headers: { 'Content-Type' => CONTENT_TYPE } } end def self.decode(json) MultiJson.decode(json) end 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/base.rb |
micro-rb-0.1.0.rc2 | lib/micro/clients/base.rb |