Class: Webmachine::Streaming::Encoder Private
- Inherits:
-
Object
- Object
- Webmachine::Streaming::Encoder
- Defined in:
- lib/webmachine/streaming/encoder.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Subclasses of this class implement means for streamed/chunked response bodies to be coerced to the negotiated character set and encoded automatically as they are output to the client.
Direct Known Subclasses
Instance Attribute Summary collapse
- #body ⇒ Object private
- #charsetter ⇒ Object private
- #encoder ⇒ Object private
- #resource ⇒ Object private
Instance Method Summary collapse
-
#initialize(resource, encoder, charsetter, body) ⇒ Encoder
constructor
private
A new instance of Encoder.
Constructor Details
#initialize(resource, encoder, charsetter, body) ⇒ Encoder
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Encoder.
10 11 12 |
# File 'lib/webmachine/streaming/encoder.rb', line 10 def initialize(resource, encoder, charsetter, body) @resource, @encoder, @charsetter, @body = resource, encoder, charsetter, body end |
Instance Attribute Details
#body ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/webmachine/streaming/encoder.rb', line 8 def body @body end |
#charsetter ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/webmachine/streaming/encoder.rb', line 8 def charsetter @charsetter end |
#encoder ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/webmachine/streaming/encoder.rb', line 8 def encoder @encoder end |
#resource ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/webmachine/streaming/encoder.rb', line 8 def resource @resource end |