Socket
Book a DemoInstallSign in
Socket

json_api_resource_adapters

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json_api_resource_adapters

0.1.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

JsonApiResourceAdapters

A collection of handy adapters for projects tha use JsonApiResource

Installation

Add this line to your application's Gemfile:

gem 'json_api_resource_adapters'

And then execute:

$ bundle

Or install it yourself as:

$ gem install json_api_resource_adapters

Usage

Include the gem and you will have access to

Autobots::JsonApiResourceAssembler

This is an adapter for autobots that allows autobots to bulk fetch records for caching.

The setup is pretty simple:

module MyApi
  module V1
    class MyAssembler < Autobots::JsonApiResourceAssembler

      self.cache = Rails.cache

    end
  end
end

Elasticsearch adapter

This is an adapter for elasticsearch-model

There's nothing you have to do. It will autoload and let you call interacr with your resource class the same way you would with an ActiveRecord model

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/gaorlov/json_api_resource_adapters.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 10 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.