Class: Mayu::EventStream::Blob
- Inherits:
-
Object
- Object
- Mayu::EventStream::Blob
- Extended by:
- T::Sig
- Defined in:
- lib/mayu/event_stream.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ Blob
constructor
A new instance of Blob.
- #to_msgpack_ext ⇒ Object
Constructor Details
#initialize(data) ⇒ Blob
Returns a new instance of Blob.
55 56 57 |
# File 'lib/mayu/event_stream.rb', line 55 def initialize(data) @data = data end |
Class Method Details
.from_msgpack_ext(data) ⇒ Object
60 61 62 |
# File 'lib/mayu/event_stream.rb', line 60 def self.from_msgpack_ext(data) new(data) end |
Instance Method Details
#to_msgpack_ext ⇒ Object
65 66 67 |
# File 'lib/mayu/event_stream.rb', line 65 def to_msgpack_ext @data end |