Sha256: 9d0ac433238eba03ec713a1a0aa34ce91ec39e3d749ecda04aacc581f741a50c
Contents?: true
Size: 719 Bytes
Versions: 3
Compression:
Stored size: 719 Bytes
Contents
module Grape module Batch class Configuration attr_accessor :path, :limit, :formatter, :logger, :session_proc, :session_header def initialize @path = '/batch' @limit = 10 @formatter = Grape::Batch::Response @logger = nil @session_header = 'HTTP_X_SESSION_TOKEN' @session_proc = Proc.new {} end end # Set default configuration for Grape::Batch middleware class << self attr_accessor :configuration end def self.configuration @configuration ||= Configuration.new end def self.configuration=(config) @configuration = config end def self.configure yield configuration end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
grape-batch-1.2.1 | lib/grape/batch/configuration.rb |
grape-batch-1.2.0 | lib/grape/batch/configuration.rb |
grape-batch-1.1.4 | lib/grape/batch/configuration.rb |