Class: Spikard::CompressionConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCompressionConfig

Returns a new instance of CompressionConfig.

Parameters:

  • gzip: (Boolean)
  • brotli: (Boolean)
  • min_size: (Integer)
  • quality: (Integer)


136
# File 'sig/types.rbs', line 136

def initialize: (?gzip: bool, ?brotli: bool, ?min_size: Integer, ?quality: Integer) -> void

Instance Attribute Details

#brotliBoolean?

Returns the value of attribute brotli.

Returns:

  • (Boolean, nil)


132
133
134
# File 'sig/types.rbs', line 132

def brotli
  @brotli
end

#gzipBoolean?

Returns the value of attribute gzip.

Returns:

  • (Boolean, nil)


131
132
133
# File 'sig/types.rbs', line 131

def gzip
  @gzip
end

#min_sizeInteger?

Returns the value of attribute min_size.

Returns:

  • (Integer, nil)


133
134
135
# File 'sig/types.rbs', line 133

def min_size
  @min_size
end

#qualityInteger?

Returns the value of attribute quality.

Returns:

  • (Integer, nil)


134
135
136
# File 'sig/types.rbs', line 134

def quality
  @quality
end

Class Method Details

.defaultCompressionConfig

Returns:



137
# File 'sig/types.rbs', line 137

def self.default: () -> CompressionConfig