Class: Rubino::Compression::ContentRouter::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/rubino/compression/content_router.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appliedObject (readonly)

Returns the value of attribute applied

Returns:

  • (Object)

    the current value of applied



57
58
59
# File 'lib/rubino/compression/content_router.rb', line 57

def applied
  @applied
end

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



57
58
59
# File 'lib/rubino/compression/content_router.rb', line 57

def content_type
  @content_type
end

#saved_tokens_estObject (readonly)

Returns the value of attribute saved_tokens_est

Returns:

  • (Object)

    the current value of saved_tokens_est



57
58
59
# File 'lib/rubino/compression/content_router.rb', line 57

def saved_tokens_est
  @saved_tokens_est
end

#strategyObject (readonly)

Returns the value of attribute strategy

Returns:

  • (Object)

    the current value of strategy



57
58
59
# File 'lib/rubino/compression/content_router.rb', line 57

def strategy
  @strategy
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



57
58
59
# File 'lib/rubino/compression/content_router.rb', line 57

def text
  @text
end

Class Method Details

.passthrough(content_type) ⇒ Object



60
61
62
63
# File 'lib/rubino/compression/content_router.rb', line 60

def self.passthrough(content_type)
  new(applied: false, text: nil, content_type: content_type,
      strategy: :passthrough, saved_tokens_est: 0)
end

Instance Method Details

#applied?Boolean

Returns:

  • (Boolean)


58
# File 'lib/rubino/compression/content_router.rb', line 58

def applied? = applied