Sha256: bf59da012e1c81a03d50ab3e5402e5777fc5cefc04b4e9b4954ccf4973aceb1e
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
module Grape module Batch class Configuration attr_accessor :path, :limit, :formatter, :logger def initialize @path = '/batch' @limit = 10 @formatter = Grape::Batch::Response @logger = nil 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grape-batch-1.1.3 | lib/grape/batch/configuration.rb |
grape-batch-1.1.2 | lib/grape/batch/configuration.rb |