Class: Logux::Stream
- Inherits:
-
Object
- Object
- Logux::Stream
- Extended by:
- Forwardable
- Defined in:
- lib/logux/stream.rb
Instance Attribute Summary collapse
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(stream) ⇒ Stream
constructor
A new instance of Stream.
- #write(payload) ⇒ Object
Constructor Details
#initialize(stream) ⇒ Stream
Returns a new instance of Stream.
11 12 13 |
# File 'lib/logux/stream.rb', line 11 def initialize(stream) @stream = stream end |
Instance Attribute Details
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
7 8 9 |
# File 'lib/logux/stream.rb', line 7 def stream @stream end |