Skip to content

Instantly share code, notes, and snippets.

class UserService::Api::UserFetcher < ::NxtClients::Client
configure do |config|
config.base_url = user_service_base_url
config.request_options.deep_merge!(headers: headers)
end
def call
fire("/users/#{user_id}") do |response_handler|
response_handler.on(:success) do |response|
json = JSON(response.body)
class UserFetcher
def call
connection.get("/users/#{user_id}")
end
private
def connection
Faraday.new(url: user_service_base_url) do |faraday|
faraday.request :json
version: '3'
services:
zipkin:
image: openzipkin/zipkin
ports:
- 9411:9411
zookeeper:
# image: wurstmeister/zookeeper
image: 31z4/zookeeper:3.4.11
kafka:

Keybase proof

I hereby claim:

  • I am akihikoitoh on github.
  • I am akihikoitoh (https://keybase.io/akihikoitoh) on keybase.
  • I have a public key ASDmQg_XoHZoQby_He5Ywvnp8X6P6gp4qafWZb7pNzTbhAo

To claim this, I am signing this object:

[
{
"name": "今出川",
"direction": "horizontal",
"results": {
"summary": {
"win": 7,
"lose": 7,
"draw": 19,
"no contest": 19
{
"label": "Kangaroo",
"Kingdom": "Animalia",
"Phylum": "Chordata",
"Class": "Mammalia",
"Order": "Diprotodontia",
"Family": "Macropodidae",
"Genus": "Macropus",
"Scientific_Name": "Macropus Giganteus",
"Type": "Mammal",
{
"game_id": "yyyymmddnn",
"records": {
"game_id": "mlbyyyymmddnn",
"records": [
{
"record_id": iippbb(ii:回,pp(表:01, 裏(02)), bb(打順)),
"situation": {
"inning": 回,
"top_buttom": 裏表,
{
"games": [
{
"year":年
"month": 月,
"day": 日,
"number": 同日の試合を区別するための番号,
"game_id": "mlbyyyymmddnn",
"home_team": {
"final_score": ホームチームの最終スコア,