Class: Rubino::Compression::ContentRouter::Result
- Inherits:
-
Data
- Object
- Data
- Rubino::Compression::ContentRouter::Result
- Defined in:
- lib/rubino/compression/content_router.rb
Instance Attribute Summary collapse
-
#applied ⇒ Object
readonly
Returns the value of attribute applied.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#saved_tokens_est ⇒ Object
readonly
Returns the value of attribute saved_tokens_est.
-
#strategy ⇒ Object
readonly
Returns the value of attribute strategy.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#applied ⇒ Object (readonly)
Returns the value of attribute applied
57 58 59 |
# File 'lib/rubino/compression/content_router.rb', line 57 def applied @applied end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type
57 58 59 |
# File 'lib/rubino/compression/content_router.rb', line 57 def content_type @content_type end |
#saved_tokens_est ⇒ Object (readonly)
Returns the value of attribute saved_tokens_est
57 58 59 |
# File 'lib/rubino/compression/content_router.rb', line 57 def saved_tokens_est @saved_tokens_est end |
#strategy ⇒ Object (readonly)
Returns the value of attribute strategy
57 58 59 |
# File 'lib/rubino/compression/content_router.rb', line 57 def strategy @strategy end |
#text ⇒ Object (readonly)
Returns the value of attribute 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
58 |
# File 'lib/rubino/compression/content_router.rb', line 58 def applied? = applied |