Updated

lib/context_request_subscriber/handler / json_api_handler.rb

A
30 lines of codes
2 methods
4.3 complexity/method
1 churn
8.68 complexity
0 duplications
# frozen_string_literal: true require 'json_api_client' module ContextRequestSubscriber module Handler module JsonApiHandler # :nodoc: class Base < JsonApiClient::Resource
  1. ContextRequestSubscriber::Handler::JsonApiHandler::Base has no descriptive comment
def initialize(params, **keys) @headers = keys.fetch(:handler_headers, {}) self.class.site = keys.fetch(:site, nil) super(params) end def call self.class.with_headers(@headers) do save end end end # :nodoc: class Context < Base; end
  1. ContextRequestSubscriber::Handler::JsonApiHandler::Context has no descriptive comment
# :nodoc: class Request < Base; end
  1. ContextRequestSubscriber::Handler::JsonApiHandler::Request has no descriptive comment
end end end