Sha256: f6beef9120c9a622c25ea4ade146ccff3a5f4466a47ec7f16b64611cc7719956
Contents?: true
Size: 409 Bytes
Versions: 7
Compression:
Stored size: 409 Bytes
Contents
# frozen_string_literal: true module <%= service_name.classify %>::Externals module <%= @external %> extend self # Example # def balance(id) # res = http.get("user/:id") # res_as_json = JSON.parse(res.body) # # The return value should only be OpenStruct or Hash Object # OpenStruct.new(user_id: res_as_json[:id], balance: res_as_json[:balance]) # end end end
Version data entries
7 entries across 7 versions & 1 rubygems