Sha256: fd8b27f890247433872c2ee7f153f3e7b48ec797d1a47a17ef9357393a5c93e6
Contents?: true
Size: 870 Bytes
Versions: 2
Compression:
Stored size: 870 Bytes
Contents
require 'jwt' require 'fast_jsonapi' require 'api_pack/version' require 'api_pack/json_web_token' require 'api_pack/pagination_meta_generator' require 'api_pack/errors/auth' require 'api_pack/errors/error_map' require 'api_pack/errors/handle_error' require 'api_pack/errors/api_errors_serializer' require 'api_pack/errors/validation_error_serializer' require 'api_pack/errors/validation_errors_serializer' require 'api_pack/constants' require 'api_pack/support/api_helper' require 'api_pack/serializer/parser' module ApiPack module_function PER_PAGE = 10 # 24 hours from now DEFAULT_EXP = (Time.now + 1 * 86_400).to_i attr_writer :default_per_page, :exp def default_per_page @default_per_page ||= PER_PAGE end def exp @exp ||= DEFAULT_EXP end def serializer_adapter=(adapter) ApiPack::Serializer::Parser.adapter = adapter end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api_pack-1.0.1 | lib/api_pack.rb |
api_pack-1.0.0 | lib/api_pack.rb |