Sha256: 53371ca1483efa6fc52cc857d106f4cb7a5af6a9317c8f8fdd209cd14a2c6be1
Contents?: true
Size: 844 Bytes
Versions: 1
Compression:
Stored size: 844 Bytes
Contents
require 'pry' rescue nil require 'core_ext/boolean' require "active_support/core_ext/string/inflections" require "active_support/core_ext/hash/keys" require 'active_support/cache' require 'jsonapionify/autoload' module JSONAPIonify autoload :VERSION, 'jsonapi-objects/version' extend JSONAPIonify::Autoload autoload_all 'jsonapionify' def self.path __dir__ end def self.parse(hash) hash = JSON.parse(hash) if hash.is_a? String Structure::Objects::TopLevel.from_hash(hash) end def self.new_object Structure::Objects::TopLevel.new end def self.cache(store, *args) self.cache_store = ActiveSupport::Cache.lookup_store(store, *args) end def self.cache_store=(store) @cache_store = store end def self.cache_store @cache_store ||= ActiveSupport::Cache.lookup_store :null_store end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsonapionify-0.0.1.pre | lib/jsonapionify.rb |