Class: Pupil::Stream::Shash
- Inherits:
-
Object
- Object
- Pupil::Stream::Shash
- Defined in:
- lib/pupil/stream/base.rb
Overview
Stream Hash
Instance Attribute Summary (collapse)
-
- (Object) event
readonly
Returns the value of attribute event.
Instance Method Summary (collapse)
- - (Object) [](param)
-
- (Shash) initialize(event, status)
constructor
A new instance of Shash.
- - (Object) size
Constructor Details
- (Shash) initialize(event, status)
A new instance of Shash
102 103 104 105 |
# File 'lib/pupil/stream/base.rb', line 102 def initialize event, status @hash = status @event = event end |
Instance Attribute Details
- (Object) event (readonly)
Returns the value of attribute event
100 101 102 |
# File 'lib/pupil/stream/base.rb', line 100 def event @event end |
Instance Method Details
- (Object) [](param)
107 108 109 |
# File 'lib/pupil/stream/base.rb', line 107 def [] param @hash[param] end |
- (Object) size
111 112 113 |
# File 'lib/pupil/stream/base.rb', line 111 def size @hash.size end |