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)


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

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)


116
117
118
# File 'sig/types.rbs', line 116

def brotli
  @brotli
end

#gzipBoolean?

Returns the value of attribute gzip.

Returns:

  • (Boolean, nil)


115
116
117
# File 'sig/types.rbs', line 115

def gzip
  @gzip
end

#min_sizeInteger?

Returns the value of attribute min_size.

Returns:

  • (Integer, nil)


117
118
119
# File 'sig/types.rbs', line 117

def min_size
  @min_size
end

#qualityInteger?

Returns the value of attribute quality.

Returns:

  • (Integer, nil)


118
119
120
# File 'sig/types.rbs', line 118

def quality
  @quality
end

Class Method Details

.defaultCompressionConfig

Returns:



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

def self.default: () -> CompressionConfig