Class: Pupil::Stream::Shash

Inherits:
Object
  • Object
show all
Defined in:
lib/pupil/stream/base.rb

Overview

Stream Hash

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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